Fortran/OpenMP: Avoid ICE for invalid char array in omp atomic [PR104329]
authorTobias Burnus <tobias@codesourcery.com>
Thu, 10 Feb 2022 08:30:19 +0000 (09:30 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 10 Feb 2022 08:30:19 +0000 (09:30 +0100)
commit9694f6121982668285a21020b55b44c3099f7042
tree97f9d3897df34ad47d7dad328c2b1376c760f96a
parent6d98e83b2c919bd9fba2c61333d613bafc37357f
Fortran/OpenMP: Avoid ICE for invalid char array in omp atomic [PR104329]

PR fortran/104329
gcc/fortran/ChangeLog:

* openmp.cc (resolve_omp_atomic): Defer extra-code assert after
other diagnostics.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/atomic-28.f90: New test.
gcc/fortran/openmp.cc
gcc/testsuite/gfortran.dg/gomp/atomic-28.f90 [new file with mode: 0644]