[Bug c/103587] [10/11/12 Regression] ICE in c_parser_consume_token, at c/c-parser.c:850 since r10-4633-g4e03c3a7c1149a8e
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 10 14:22:27 GMT 2021
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.
More information about the Gcc-bugs
mailing list