From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4312 invoked by alias); 9 Apr 2010 20:42:04 -0000 Received: (qmail 4270 invoked by uid 48); 9 Apr 2010 20:41:47 -0000 Date: Fri, 09 Apr 2010 20:42:00 -0000 Subject: [Bug fortran/43711] New: Unformitive error message for two NOWAIT in OpenMP directive X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "longb at cray dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg00986.txt.bz2 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