Fix PR c++/77639 (ICE during error recovery)
authorPatrick Palka <ppalka@gcc.gnu.org>
Mon, 19 Sep 2016 18:12:36 +0000 (18:12 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Mon, 19 Sep 2016 18:12:36 +0000 (18:12 +0000)
commit6101a7ab878f784558c908d6e4773d49b0858e0e
tree418e0d7e8d09dbc87f2f70bec91de96afdb2fdff
parentd0f5943566482b094ac600e63271c22ebf227c5f
Fix PR c++/77639 (ICE during error recovery)

gcc/cp/ChangeLog:

PR c++/77639
* parser.c (cp_parser_class_head): When
processing_template_parmlist, don't assume that the
class-head may start an explicit specialization.

gcc/testsuite/ChangeLog:

PR c++/77639
* g++.dg/template/error-recovery4.C: New test.

From-SVN: r240245
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/error-recovery4.C [new file with mode: 0644]