This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/33445] Diagnose "!$OMP&" as an error in free format unless it is a continuation line



------- Comment #9 from jakub at gcc dot gnu dot org  2007-09-19 14:11 -------
Well, it is the Fortran standard that says free form comments start with !
And then OpenMP2.5 2.1.2 goes on and says certain forms of comments are not
to be treated as comments, but OpenMP directives etc.
One of them is !$omp followed by space, one of them is
!$omp& if the previous line was an openmp directive line ending with &.
Or !$ followed by space (for conditional compilation).
Anything else is a comment.
So an error would be wrong.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33445


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]