re PR fortran/35786 (OpenMP Fortran PRIVATE on parameter gives error in gfc_finish_va...
authorJakub Jelinek <jakub@redhat.com>
Thu, 3 Apr 2008 21:01:26 +0000 (23:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 3 Apr 2008 21:01:26 +0000 (23:01 +0200)
commit637b5a8e7ced71facbb36d9505b85ad3b991572b
tree02b953d9998d526e71e6468cb7fbc7b9f9826267
parent940f3b52196cc3ca48200d40d9e9f46e145998d9
re PR fortran/35786 (OpenMP Fortran PRIVATE on parameter gives error in gfc_finish_var_decl)

PR fortran/35786
* openmp.c (resolve_omp_clauses): Diagnose if a clause symbol
isn't a variable.

* gfortran.dg/gomp/pr35786-1.f90: New test.
* gfortran.dg/gomp/pr35786-2.f90: New test.

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