aboutsummaryrefslogtreecommitdiff
path: root/libcpp/directives.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-12-01 21:41:44 +0100
committerJakub Jelinek <jakub@redhat.com>2020-12-01 21:46:03 +0100
commit91ddf867a57b028ab322b737ea8355d5a472cd44 (patch)
tree9d41ad142b68b1b5856a1be28230e50801b2cbee /libcpp/directives.c
parentd02c41dd414dcc65a08bc82f312f7808b5d90028 (diff)
downloadgcc-91ddf867a57b028ab322b737ea8355d5a472cd44.zip
gcc-91ddf867a57b028ab322b737ea8355d5a472cd44.tar.gz
gcc-91ddf867a57b028ab322b737ea8355d5a472cd44.tar.bz2
openmp: Avoid ICE on depend clause on depobj OpenMP construct [PR98072]
Since r11-5430 we ICE on the following testcase. When parsing the depobj directive we don't really use cp_parser_omp_all_clauses routine which ATM disables generation of location wrappers and the newly added assertion that there are no location wrappers thus triggers. Fixed by adding the location wrappers suppression sentinel. Longer term, we should handle location wrappers inside of OpenMP clauses. 2020-12-01 Jakub Jelinek <jakub@redhat.com> PR c++/98072 * parser.c (cp_parser_omp_depobj): Suppress location wrappers when parsing depend clause. * c-c++-common/gomp/depobj-2.c: New test.
Diffstat (limited to 'libcpp/directives.c')
0 files changed, 0 insertions, 0 deletions