[Omp] Empty OMP continuation lines

Kelvin Li kli at ca.ibm.com
Tue Feb 21 08:40:13 PST 2006


Hi Georg,

In Section 3.3.1.3 of Fortran 95 standard, it states that

  No line shall contain a single "&" as the only nonblank
  character or as the only nonblank character before an "!"
  that initiates a comment.

The same restriction is also in Fortran 2003 standard.  In 
this case, a single "&" appears in the second line is not 
conforming to the Fortran standard.

Kelvin

Omp-bounces at openmp.org wrote on 20/02/2006 08:46:31 AM:

> Hi all,
> 
> a compiler we've tested does not like empty OMP continuation lines in
> Fortran, i.e.
> 
> !$OMP parallel do &
> !$OMP & 
> !$OMP private(i)
> 
> is not accepted (the empty lines come up because the OMP directives
> are mostly generated by the preprocessor in this code). Adding a
> second '&' at the end of the second line doesn't help either. The 2.5
> spec is not too clear about this.  On page 20, line 12 it says that
> "Fortran free form line length, white space, and continuation rules
> apply to the directive line." That would mean that empty OMP
> continuation lines are allowed, like in Fortran. Is that true, or is
> the compiler right?
> 
> Thanks for any help,
> Georg.
> 
> 
> _______________________________________________
> Omp mailing list
> Omp at openmp.org
> http://openmp.org/mailman/listinfo/omp_openmp.org





More information about the Omp mailing list