https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120180
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Sandra Loosemore <san...@gcc.gnu.org>: https://gcc.gnu.org/g:65e0ed2310a1b0d1a3255583bbfb8a8d86c5aea5 commit r16-963-g65e0ed2310a1b0d1a3255583bbfb8a8d86c5aea5 Author: Sandra Loosemore <sloosem...@baylibre.com> Date: Sat May 24 03:21:18 2025 +0000 OpenMP: Fix ICE in metadirective recovery after error [PR120180] It's not clear whether a metadirective in a loop nest is supposed to be valid, but GCC certainly shouldn't be ICE'ing after diagnosing it as an error. gcc/c/ChangeLog PR c/120180 * c-parser.cc (c_parser_omp_metadirective): Only consume the token if it is the expected close paren. gcc/cp/ChangeLog PR c/120180 * parser.cc (cp_parser_omp_metadirective): Only consume the token if it is the expected close paren. gcc/testsuite/ChangeLog PR c/120180 * c-c++-common/gomp/pr120180.c: New.