re PR fortran/40878 (!$omp collapse(m) with non-constant m should give error)
authorJakub Jelinek <jakub@redhat.com>
Tue, 28 Jul 2009 16:15:47 +0000 (18:15 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 28 Jul 2009 16:15:47 +0000 (18:15 +0200)
commit394a5b34b1c35ef8aae0b6c177a770408d4a7649
tree26883979ecfe7f394d5821662e84767466896612
parentfa4d0418e4926467ac7c8e3c81c246ecf284da5d
re PR fortran/40878 (!$omp collapse(m) with non-constant m should give error)

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.

From-SVN: r150165
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr40878-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr40878-2.f90 [new file with mode: 0644]