This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33445] Diagnose "!$OMP&" as an error in free format unless it is a continuation line
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2007 14:11:01 -0000
- Subject: [Bug fortran/33445] Diagnose "!$OMP&" as an error in free format unless it is a continuation line
- References: <bug-33445-15101@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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