From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59591 invoked by alias); 6 Aug 2015 14:29:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 59434 invoked by uid 55); 6 Aug 2015 14:28:58 -0000 From: "jason at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67130] [6 Regression] ICE: tree check: expected identifier_node, have template_decl in write_unqualified_id, at cp/mangle.c:1218 Date: Thu, 06 Aug 2015 14:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg00434.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67130 --- Comment #2 from Jason Merrill --- Author: jason Date: Thu Aug 6 14:28:26 2015 New Revision: 226677 URL: https://gcc.gnu.org/viewcvs?rev=226677&root=gcc&view=rev Log: PR c++/67130 PR c++/67131 PR c++/66260 * mangle.c (write_expression) [TEMPLATE_ID_EXPR]: Handle variable templates. * pt.c (tsubst_copy_and_build): Check for argument substitution failure. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ42.C branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ43.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/mangle.c branches/gcc-5-branch/gcc/cp/pt.c