From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31683 invoked by alias); 3 Feb 2003 19:00:50 -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 31550 invoked by uid 48); 3 Feb 2003 19:00:50 -0000 Date: Mon, 03 Feb 2003 19:00:00 -0000 Message-ID: <20030203190050.31543.qmail@sources.redhat.com> To: acfb@gmx.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, acfb@gmx.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9549: [3.4 regression] [New parser] ICE in regenerate_decl_from_template X-SW-Source: 2003-02/txt/msg00129.txt.bz2 List-Id: Old Synopsis: g++ fails to call member template from template class New Synopsis: [3.4 regression] [New parser] ICE in regenerate_decl_from_template State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Mon Feb 3 19:00:50 2003 State-Changed-Why: This is not a bug. You need to write m.template do_it(); Incidentially, however, the code you give triggers an ICE in the new parser, so I keep it open as a regression and change the synopsis. Here's a simplified piece of code for the ICE: ----------------------------- struct X { template void foo() { } }; template void bar () { X().template foo(); } template void bar (); ------------------------------------- tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc x.cc: In member function `void X::foo()': x.cc:2: instantiated from `void X::foo() [with {template default argument error} = T]' x.cc:6: instantiated from `void bar() [with T = int]' x.cc:8: instantiated from here x.cc:2: internal compiler error: in regenerate_decl_from_template, at cp/pt.c: 10533 Please submit a full bug report, http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9549