]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP: Avoid ICE in c_parser_omp_clause_allocate with invalid expr
authorTobias Burnus <tobias@codesourcery.com>
Tue, 5 Sep 2023 12:57:01 +0000 (14:57 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 5 Sep 2023 14:49:18 +0000 (16:49 +0200)
commit55243898f8f9560371f258fe0c6ca202ab7b2085
tree3c04ab611bd84e24dc7b7b1915f69be2e3e636cf
parentb7f474517092b0ed6fd7af0690900d15c8c073f8
OpenMP: Avoid ICE in c_parser_omp_clause_allocate with invalid expr

gcc/c/ChangeLog:

* c-parser.cc (c_parser_omp_clause_allocate): Handle
error_mark_node.

gcc/testsuite/ChangeLog:

* c-c++-common/gomp/allocate-13.c: New test.
gcc/c/c-parser.cc
gcc/testsuite/c-c++-common/gomp/allocate-13.c [new file with mode: 0644]