Fortran: OpenMP/OpenACC diagnose substring rejections better
authorTobias Burnus <tobias@codesourcery.com>
Thu, 4 Feb 2021 11:32:59 +0000 (12:32 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 4 Feb 2021 11:32:59 +0000 (12:32 +0100)
commitf0e618faeb619ec02dabbef203a5575fca44a7f7
tree60a765f2ae1c6de5b437e72f948a1a8582af9403
parent5eb792e7a12ad214e5295e3f664637078936213f
Fortran: OpenMP/OpenACC diagnose substring rejections better

gcc/fortran/ChangeLog:

* openmp.c (resolve_omp_clauses): Explicitly diagnose
substrings as not permitted.

gcc/testsuite/ChangeLog:

* gfortran.dg/goacc/substring.f90: New test.
* gfortran.dg/gomp/substring.f90: New test.
gcc/fortran/openmp.c
gcc/testsuite/gfortran.dg/goacc/substring.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/substring.f90 [new file with mode: 0644]