https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103587
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Not really specific to OpenMP, e.g. [[foo::bar( #pragma GCC ivdep )]]; ICEs too. cp_parser_skip_balanced_tokens ignores CPP_PRAGMA_EOL tokens if the function wasn't called from inside of pragma parsing (otherwise treats it like CPP_EOF and determines it wasn't balanced). Though, maybe it should also look at CPP_PRAGMA and ensure the tokens are balanced with it too, ( #pragma GCC ivdep ) isn't really balanced but C++ FE doesn't really take the balancing as pedantic as C FE does - for our C++ parser ( [ { ) } ] is balanced, for C it isn't.