Syntax silliness

Syntax silliness

It is the season for triviality...

MODULE PublicColonsShouldBeBanned
  PUBLIC ::   ! Not permitted by F95 R522 / F2003 R518 / F2008 R524
END MODULE PublicColonsShouldBeBanned

Despite widespread agreement about the sentiment in the module name, the above compiles without error.

[U:\projects\any-excuse-for-procrastination]
>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.
[U:\projects\any-excuse-for-procrastination]
>

5 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de Steve Lionel (Intel)

Thanks - I will let the developers know. Issue ID is DPD200239816.

Steve

Another (one, (for free form (only))) ...


SUBROUTINE ThisOneIsOk

END 
SUBROUTINE ButThisOneIsMissingSomething BIND(C)

END


>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.
>

Portrait de Steve Lionel (Intel)

Thanks - yes, that too is incorrect. (For those wondering, because the BIND(C) suffix is there, () is required after the subroutine name.)

Steve
Portrait de Steve Lionel (Intel)

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

Steve

Connectez-vous pour laisser un commentaire.