This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]