[Omp] Need help interpreting section 2.1.3.1 of the Fortran spec

Bernd Mohr b.mohr at fz-juelich.de
Thu Dec 9 00:30:25 PST 2004


Hi all,

I am currently in discussion with the IBM compiler folks about the correct
compilation of the following Fortran fixed source OpenMP program:

-------------------------------------------------------- 
       program iii 
C$ABC  garbage 
       end 
-------------------------------------------------------- 

When I read section 2.1.3.1 of the Fortran V2.0 spec (especially the last
sentence which states "If these criteria are not met, the line is treated
as a comment and ignored.") I come to the conclusion, that if I compile
this simple program above in OpenMP compilation mode, the second line is a
comment (as it does not fullfils the criteria listed for an initial line
and then, because of the last sentence, it is a comment and ignored).

The IBM compiler treats the second line as an OpenMP conditional
compilation line (and then I get of course compilation errors), because
they claim (if I understand their arguments right) that the last sentence
"If these criteria are not met, the line is treated as a comment and ignored."
only applies to continuation lines.

Who is right? ;-)

Thanks
Bernd

-- 
Bernd Mohr / Research Centre Juelich, ZAM, Germany / B.Mohr at fz-juelich.de





More information about the Omp mailing list