diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-08-20 11:29:48 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-08-20 11:29:48 +0200 |
commit | f9400e4e4705845f2b0cdc4eab30c214e0e4cbe0 (patch) | |
tree | 2cb83ba088c693e989434011fa757a5c52624b36 /gcc/fortran/resolve.c | |
parent | b777f228b481ae881a7fbb09de367a053740932c (diff) | |
download | gcc-f9400e4e4705845f2b0cdc4eab30c214e0e4cbe0.zip gcc-f9400e4e4705845f2b0cdc4eab30c214e0e4cbe0.tar.gz gcc-f9400e4e4705845f2b0cdc4eab30c214e0e4cbe0.tar.bz2 |
openmp: Diagnose some superfluous commas in OpenMP parsing
While working on error directive, I've noticed a few spots in OpenMP
parsing where we consume and don't diagnose superfluous commas at the end
(either of depend sink arguments or at the end of requires pragma).
2021-08-20 Jakub Jelinek <jakub@redhat.com>
gcc/c/
* c-parser.c (c_parser_omp_clause_depend_sink): Reject spurious
comma at the end of list.
(c_parser_omp_requires): Likewise.
gcc/cp/
* parser.c (cp_parser_omp_clause_depend_sink): Reject spurious
comma at the end of list. Don't parse closing paren here...
(cp_parser_omp_clause_depend): ... but here instead.
gcc/testsuite/
* c-c++-common/gomp/sink-5.c: New test.
* c-c++-common/gomp/requires-3.c: Add test for spurious comma
at the end of pragma line.
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions