public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/43711]  New: Unformitive error message for two NOWAIT in OpenMP directive
@ 2010-04-09 20:42 longb at cray dot com
  2010-05-07 17:24 ` [Bug fortran/43711] " dfranke at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: longb at cray dot com @ 2010-04-09 20:42 UTC (permalink / raw)
  To: gcc-bugs

For the test code:

program NF03_2_5_2_1a
   !$omp parallel
      !$omp sections
      !$omp section
         print *, 'FAIL'
      !$omp section
         print *, 'FAIL'
      !$omp end sections nowait nowait
   !$omp end parallel

   print *, 'FAIL - NF03_2_5_2_1a.f90 should not compile'
   stop 1
end program NF03_2_5_2_1a

the second 'nowait' on the !$omp end sections directive is not correct.  The
gfortran compiler issues this message:

> gfortran -c -fopenmp test.f90
test.f90:8.12:

      !$omp end sections nowait nowait
            1
Error: Unclassifiable OpenMP directive at (1)
test.f90:9.21:

A more useful message would be better. For example, PGI issues:


> pgf90 -mp -c test.f90
PGF90-S-0034-Syntax error at or near NOWAIT (test.f90: 8)
  0 inform,   0 warnings,   1 severes, 0 fatal for nf03_2_5_2_1a


which at least points to the NOWAIT as the problem.

Since gfortran is failing to recognize the end section statement, there are
further errors issued for the test case:

test.f90:9.21:

   !$omp end parallel
                     1
Error: Unexpected !$OMP END PARALLEL statement at (1)
test.f90:13.3:

end program NF03_2_5_2_1a
   1
Error: Unexpected END statement at (1)
Error: Unexpected end of file in 'test.f90'

which compound the possible confusion.


-- 
           Summary: Unformitive error message for two NOWAIT in OpenMP
                    directive
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: longb at cray dot com
 GCC build triplet: x86_64-suse-linux
  GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-11 16:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-09 20:42 [Bug fortran/43711] New: Unformitive error message for two NOWAIT in OpenMP directive longb at cray dot com
2010-05-07 17:24 ` [Bug fortran/43711] " dfranke at gcc dot gnu dot org
2010-05-07 17:42 ` dfranke at gcc dot gnu dot org
2010-05-11 16:45 ` dfranke at gcc dot gnu dot org
2010-05-11 16:46 ` dfranke at gcc dot gnu dot org
2010-05-11 16:47 ` dfranke at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).