[PR c++/92370] ICE with VC marker
authorNathan Sidwell <nathan@acm.org>
Tue, 5 Nov 2019 16:59:41 +0000 (16:59 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 5 Nov 2019 16:59:41 +0000 (16:59 +0000)
commit3fd4f9242d9b7d2032126dc4851b4fdf5628dc35
tree4695f86233e960ab7da052354dec811c70c88f87
parentb00460cb14ef64b3bc5348eef94aa177c642d4b4
[PR c++/92370] ICE with VC marker

https://gcc.gnu.org/ml/gcc-patches/2019-11/msg00323.html
cp/
PR c++/92370
* parser.c (cp_parser_error_1): Check EOF and UNKNOWN_LOCATION
when skipping over version control marker.

testsuite/
PR c++/92370
* g++.dg/pr92370.C: New.

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