Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29487 Discussions

Compiler error involving unlimited polymorphic type, optional argument, subroutine call and function call

pwl_b
Novice
1,241 Views
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)
0 Kudos
3 Replies
Udit_P_Intel
Employee
1,241 Views
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
0 Kudos
IDZ_A_Intel
Employee
1,241 Views
When is 13.0 due to arrive? Or is it already available?
0 Kudos
Steven_L_Intel1
Employee
1,241 Views
Expect 13.0 in the third quarter of this year.
0 Kudos
Reply