From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4652 invoked by alias); 12 May 2003 17:06:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 4272 invoked by uid 71); 12 May 2003 17:06:02 -0000 Date: Mon, 12 May 2003 17:06:00 -0000 Message-ID: <20030512170602.4266.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Christian Ehrhardt" Subject: Re: c++/6949: [2003-01-22] ICE in tsubst_decl, at cp/pt.c:5733 Reply-To: "Christian Ehrhardt" X-SW-Source: 2003-05/txt/msg01252.txt.bz2 List-Id: The following reply was made to PR c++/6949; it has been noted by GNATS. From: "Christian Ehrhardt" To: gcc-prs@gcc.gnu.org, rubin@contractor.net, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/6949: [2003-01-22] ICE in tsubst_decl, at cp/pt.c:5733 Date: Mon, 12 May 2003 18:58:18 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6949 A further cleaned up testcase is below. The problem is that tsubst_decl expects non NULL DECL_TEMPLATE_INFO on the prototype declaration of the member function g in this assertion around line 6000 in cp/pt.c: | /* Nobody should be tsubst'ing into non-template functions. */ | my_friendly_assert (DECL_TEMPLATE_INFO (t) != NULL_TREE, 0); template void f(const T&) { struct B { void g (T); }; B b; }; void g() { f(42); } regards Christian