- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is the season for triviality...
[fortran]MODULE PublicColonsShouldBeBanned
PUBLIC :: ! Not permitted by F95 R522 / F2003 R518 / F2008 R524
END MODULE PublicColonsShouldBeBanned[/fortran]
Despite widespread agreement about the sentiment in the module name, the above compiles without error.
[plain]
>ifort /c /warn:all /stand:f95 "2013-01-02 public-colons.f90"
Intel(R) Visual Fortran Compiler XE for applications running on IA-32, Version 13.0.1.119 Build 20121008
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
>
[/plain]
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - I will let the developers know. Issue ID is DPD200239816.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another (one, (for free form (only))) ...
[fortran]
SUBROUTINE ThisOneIsOk
END
SUBROUTINE ButThisOneIsMissingSomething BIND(C)
END
[/fortran]
[plain]
>ifort /c /check:all /warn:all /standard-semantics /stand:f03 "2013-01-05 R1234.f90"
Intel(R) Visual Fortran Compiler XE for applications running on IA-32, Version 13.0.1.119 Build 20121008
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
>
[/plain]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - yes, that too is incorrect. (For those wondering, because the BIND(C) suffix is there, () is required after the subroutine name.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The PUBLIC:: issue is fixed for a release later this year. The missing error for BIND(C) without the argument list is issue DPD200241568.

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