[Bug c++/77639] [6/7 Regression] ICE on x86_64-linux-gnu (internal compiler error: tree check: accessed elt 1 of tree_vec with 0 elts in unify, at cp/pt.c:19674)
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 19 18:13:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77639
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Mon Sep 19 18:12:36 2016
New Revision: 240245
URL: https://gcc.gnu.org/viewcvs?rev=240245&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/template/error-recovery4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list