- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort (IFORT) 12.1.3 20120212
[fortran]module m1 contains subroutine f(val) class(*), optional :: val end subroutine f end module m1 module m2 use m1 contains function g() result(p) class(*), pointer :: p allocate(real::p) call f() end function g end module m2 program p use m2 class(*), pointer :: ptr ptr => g() end program p [/fortran]
compiling with
$ifort -stand f08 bug3.f90
results in
bug3.f90(21): error #6404: This name does not have a type, and must have an explicit type. [#UNLPOLY]
ptr => g()
^
bug3.f90(23): catastrophic error: Internal Compiler Error: possible out of order or missing USE
compilation aborted for bug3.f90 (code 1)
[fortran]module m1 contains subroutine f(val) class(*), optional :: val end subroutine f end module m1 module m2 use m1 contains function g() result(p) class(*), pointer :: p allocate(real::p) call f() end function g end module m2 program p use m2 class(*), pointer :: ptr ptr => g() end program p [/fortran]
compiling with
$ifort -stand f08 bug3.f90
results in
bug3.f90(21): error #6404: This name does not have a type, and must have an explicit type. [#UNLPOLY]
ptr => g()
^
bug3.f90(23): catastrophic error: Internal Compiler Error: possible out of order or missing USE
compilation aborted for bug3.f90 (code 1)
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I could reproduce the error on a 12.1 compiler, but not on the latest 13.0 compilers. The internal error seems to have been fixed in the latest compilers.
Best!
-Udit
Best!
-Udit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When is 13.0 due to arrive? Or is it already available?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Expect 13.0 in the third quarter of this year.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page