This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43711] New: Unformitive error message for two NOWAIT in OpenMP directive
- From: "longb at cray dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Apr 2010 20:41:47 -0000
- Subject: [Bug fortran/43711] New: Unformitive error message for two NOWAIT in OpenMP directive
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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