'!$OMP' directive followed by several spaces

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Feb 14 14:43:00 GMT 2007


Daniel Franke wrote:
> 2007/2/14, Daniel Franke <franke.daniel@gmail.com>:
>> OTOH:
>> $> cat do1.f
>>       !$OMP   parallel
>>       !$omp end parallel
>>       end
>> $> gfortran-svn -g -Wall -fopenmp do1.f
>>
>> Compiles without notice.
> 
> $> gfortran-svn -g -Wall -fopenmp -ffree-form omp.f
> omp.f:4.6:
> 
> !$OMP      PARALLEL    DO
>     1
> Error: Unclassifiable OpenMP directive at (1)
> 
> So the -ffree-form flags breaks parsing somehow?!

Blanks are meaningless in fixed form.  I don't know if this is meant to 
hold in $OMP statements as well, but this could account for the difference.

- Tobi



More information about the Fortran mailing list