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

Shah, Sanjiv sanjiv.shah at intel.com
Thu Dec 9 07:18:43 PST 2004


Hi Bernd,
I don't want to get in the middle of an argument but I believe you are
correct.  This line should be ignored.
Sanjiv 


--
Sanjiv, 217-403-4244

-----Original Message-----
From: Omp-bounces at openmp.org [mailto:Omp-bounces at openmp.org] On Behalf
Of Bernd Mohr
Sent: Thursday, December 09, 2004 2:30 AM
To: omp at openmp.org
Cc: helenhyw at ca.ibm.com
Subject: [Omp] Need help interpreting section 2.1.3.1 of the Fortran
spec

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


_______________________________________________
Omp mailing list
Omp at openmp.org
http://openmp.org/mailman/listinfo/omp_openmp.org




More information about the Omp mailing list