aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/openmp.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-08-12 09:10:46 +0200
committerJakub Jelinek <jakub@redhat.com>2021-08-12 09:34:16 +0200
commitc84f79e9e3f63e9ae447fd15dbd0a768cab3f643 (patch)
tree5129dddf08f954314d6153bde16e0bc39a261b4f /gcc/fortran/openmp.c
parent3890c28ac5bd03ba334a20fbf9518a37dcdbfe5d (diff)
downloadgcc-c84f79e9e3f63e9ae447fd15dbd0a768cab3f643.zip
gcc-c84f79e9e3f63e9ae447fd15dbd0a768cab3f643.tar.gz
gcc-c84f79e9e3f63e9ae447fd15dbd0a768cab3f643.tar.bz2
openmp: Diagnose omp::directive/sequence on using-directive
With the using-directive parsing changes, we now emit only a warning for [[omp::directive (...)]] on using-directive. While that is right without -fopenmp/-fopenmp-simd, when OpenMP is enabled, that should be an error as OpenMP (is going to) disallow such attributes there as they do not appertain to a statement. 2021-08-12 Jakub Jelinek <jakub@redhat.com> * name-lookup.c (finish_using_directive): Diagnose omp::directive or omp::sequence attributes on using-directive. * g++.dg/gomp/attrs-11.C: Adjust expected diagnostics.
Diffstat (limited to 'gcc/fortran/openmp.c')
0 files changed, 0 insertions, 0 deletions