diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-08-12 09:10:46 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-08-12 09:34:16 +0200 |
commit | c84f79e9e3f63e9ae447fd15dbd0a768cab3f643 (patch) | |
tree | 5129dddf08f954314d6153bde16e0bc39a261b4f /gcc/fortran/openmp.c | |
parent | 3890c28ac5bd03ba334a20fbf9518a37dcdbfe5d (diff) | |
download | gcc-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