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

Compiler rejects valid (2003) generic interface with a procedure-stmt that omits MODULE

Cross__Mat
Beginner
651 Views
$ uname -a
Linux stonehenge 3.2.7-1.fc16.x86_64 #1 SMP Tue Feb 21 01:40:47 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ ifort -V
Intel Fortran Intel 64 Compiler XE for applications running on Intel 64, Version 12.1 Build 20111011

$ cat gi.f90
module m
interface
subroutine s
end subroutine s
end interface
interface g
procedure s
end interface g
end module m

$ ifort -c gi.f90
gi.f90(7): error #6643: This statement is incorrectly positioned.
procedure s
----^
gi.f90(7): error #8168: Parentheses are required after the PROCEDURE keyword.
procedure s
----^
compilation aborted for gi.f90 (code 1)

0 Kudos
2 Replies
Steven_L_Intel1
Employee
651 Views
Correct - this is a change in F2003 we had not yet implemented. It will be supported in a compiler version released later this year.
0 Kudos
Cross__Mat
Beginner
651 Views
Great, thanks. I'd looked in the wrong place to see what f2003 was covered; I should have looked at

Language Reference -> New Language Features -> New Fortran 2003 Features

(?)
0 Kudos
Reply