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

Syntax silliness

IanH
Honored Contributor III
781 Views

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]

0 Kudos
4 Replies
Steven_L_Intel1
Employee
781 Views
Thanks - I will let the developers know. Issue ID is DPD200239816.
0 Kudos
IanH
Honored Contributor III
781 Views
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]
0 Kudos
Steven_L_Intel1
Employee
781 Views
Thanks - yes, that too is incorrect. (For those wondering, because the BIND(C) suffix is there, () is required after the subroutine name.)
0 Kudos
Steven_L_Intel1
Employee
781 Views

The PUBLIC:: issue is fixed for a release later this year. The missing error for BIND(C) without the argument list is issue DPD200241568.

0 Kudos
Reply