- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ 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)
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)
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct - this is a change in F2003 we had not yet implemented. It will be supported in a compiler version released later this year.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
(?)
Language Reference -> New Language Features -> New Fortran 2003 Features
(?)

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