This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40878] !$omp collapse(m) with non-constant m should give error
- 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: 28 Jul 2009 16:33:34 -0000
- Subject: [Bug fortran/40878] !$omp collapse(m) with non-constant m should give error
- References: <bug-40878-14710@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2009-07-28 16:33 -------
Subject: Bug 40878
Author: jakub
Date: Tue Jul 28 16:33:08 2009
New Revision: 150167
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150167
Log:
PR fortran/40878
* openmp.c (gfc_match_omp_clauses): Use gfc_error_now instead of
gfc_error to diagnose invalid COLLAPSE arguments.
* gfortran.dg/gomp/pr40878-1.f90: New test.
* gfortran.dg/gomp/pr40878-2.f90: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/gomp/pr40878-1.f90
branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/gomp/pr40878-2.f90
Modified:
branches/gcc-4_4-branch/gcc/fortran/ChangeLog
branches/gcc-4_4-branch/gcc/fortran/openmp.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40878