diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-08-19 10:35:39 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-08-19 10:35:39 +0200 |
commit | 4e6a5fa403782590088b2796261b023963f912af (patch) | |
tree | bc83d5b21497169269892394f49a4f0a9f5eed7e /gcc/fortran | |
parent | eea1677fd03a1cb820cbb72044d4a0770f8a7a93 (diff) | |
download | gcc-4e6a5fa403782590088b2796261b023963f912af.zip gcc-4e6a5fa403782590088b2796261b023963f912af.tar.gz gcc-4e6a5fa403782590088b2796261b023963f912af.tar.bz2 |
openmp: For C++ ensure nothing directive has no operands
When working on error directive, I've noticed that while C FE diagnosed
clauses on nothing directive which doesn't allow any, the C++ FE silently
accepted it.
2021-08-19 Jakub Jelinek <jakub@redhat.com>
* parser.c (cp_parser_omp_nothing): Use cp_parser_require_pragma_eol
instead of cp_parser_skip_to_pragma_eol.
* c-c++-common/gomp/nothing-2.c: New test.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions