re PR c++/88258 (Infinite loop emitting diagnostics in the C++ front-end)
authorJakub Jelinek <jakub@redhat.com>
Sun, 2 Dec 2018 12:38:20 +0000 (13:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 2 Dec 2018 12:38:20 +0000 (13:38 +0100)
commitfaa867f5a8b74b5eaef3066debc015dc888237cb
tree79eaa6b0aa7be49f902ef6d7d64ca852b265a0d2
parentf4b6fc8c53afad76c98e9d8c7debfd092c4d9620
re PR c++/88258 (Infinite loop emitting diagnostics in the C++ front-end)

PR c++/88258
* parser.c (cp_parser_skip_to_closing_parenthesis_1,
cp_parser_skip_to_end_of_statement,
cp_parser_skip_to_end_of_block_or_statement,
cp_parser_skip_to_closing_brace,
cp_parser_skip_to_closing_square_bracket,
cp_parser_skip_balanced_tokens): Don't treat CPP_PRAGMA_EOL specially
if in_pragma is false.

* g++.dg/gomp/pr88258.C: New test.

From-SVN: r266720
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr88258.C [new file with mode: 0644]