From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27171 invoked by alias); 24 Mar 2003 06:36:01 -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 27146 invoked by uid 71); 24 Mar 2003 06:36:00 -0000 Resent-Date: 24 Mar 2003 06:36:00 -0000 Resent-Message-ID: <20030324063600.27145.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Thimo Neubauer Resent-Reply-To: gcc-gnats@gcc.gnu.org, 185604@bugs.debian.org Received: (qmail 26468 invoked from network); 24 Mar 2003 06:32:11 -0000 Received: from unknown (HELO hirsch.in-berlin.de) (192.109.42.6) by sources.redhat.com with SMTP; 24 Mar 2003 06:32:11 -0000 Received: from tango.net.local (mail@dsl-213-023-152-002.arcor-ip.net [213.23.152.2]) (authenticated bits=0) by hirsch.in-berlin.de (8.12.8/8.12.8/Debian-2) with ESMTP id h2O6WAaq022823 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Mon, 24 Mar 2003 07:32:10 +0100 Received: from doko by tango.net.local with local (Exim 4.12 #1 (Debian) [+araqnid]) id 18xLVB-00079o-00; Mon, 24 Mar 2003 07:32:09 +0100 Message-Id: Date: Mon, 24 Mar 2003 07:46:00 -0000 From: Matthias Klose Reply-To: 185604@bugs.debian.org To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: Thimo Neubauer Subject: c++/10199: [3.3 regression] method parametrized by template does not work everywhere X-SW-Source: 2003-03/txt/msg01561.txt.bz2 List-Id: >Number: 10199 >Category: c++ >Synopsis: [3.3 regression] method parametrized by template does not work everywhere >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Mon Mar 24 06:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Thimo Neubauer >Release: 3.3 CVS 20030323 >Organization: The Debian Project >Environment: >Description: [ Reported to the Debian BTS as report #185604. Please CC 185604@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/185604 ] - 3.2 CVS 20030316 rejects the code - 3.3 CVS 20030323 ICEs in the error message (the regression) - 3.4 CVS 20030316 compiles the code $ g++-3.2 bugs-185604.cc bugs-185604.cc: In function `void bar(T&) [with T = int]': bugs-185604.cc:26: instantiated from here bugs-185604.cc:18: no matching function for call to `X::bar()' $ g++-3.3 bugs-185604.cc bugs-185604.cc: In function `void bar(T&)': bugs-185604.cc:18: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. The following program is valid C++, but does not compile: -- snip -- class X { public: template int bar () {return d;} }; template int fooo () { return x; } template void bar (T& g) { int kk = fooo<17>(); // OK X x; int k = x.bar<17>(); // Not OK } int main () { X x; int k=x.bar<17>(); // OK int n; bar(n); } -- snip -- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: System: Debian GNU/Linux (unstable) Architecture: i686