From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27110 invoked by alias); 28 Jan 2003 19:50:15 -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 26996 invoked by uid 48); 28 Jan 2003 19:50:14 -0000 Date: Tue, 28 Jan 2003 19:50:00 -0000 Message-ID: <20030128195014.26995.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, levon@movementarian.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, levon@movementarian.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9486: [3.4 regression] can't find a matching member template function X-SW-Source: 2003-01/txt/msg01628.txt.bz2 List-Id: Old Synopsis: boost_no_mem_tem_keyword fails with no matching function New Synopsis: [3.4 regression] can't find a matching member template function State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Tue Jan 28 19:50:14 2003 State-Changed-Why: Confirmed. Here's a cut-down: ---------------------------- template struct X { template void foo(U); }; template void bar() { X x; x.template foo(0); } template void bar(); ------------------------- g/a> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c b.c b.c: In function `void bar() [with T = int]': b.c:10: instantiated from here b.c:8: error: no matching function for call to `X::foo(int)' This used to work until 3.3. If one removes the argument of foo but leaves it as a template, one gets an ICE instead. I'll report this in a separate PR. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9486