From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31244 invoked by alias); 24 Jul 2002 18:16:03 -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 31190 invoked by uid 71); 24 Jul 2002 18:16:01 -0000 Resent-Date: 24 Jul 2002 18:16:01 -0000 Resent-Message-ID: <20020724181601.31189.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, geb@attbi.com Received: (qmail 25731 invoked from network); 24 Jul 2002 18:08:33 -0000 Received: from unknown (HELO rwcrmhc51.attbi.com) (204.127.198.38) by sources.redhat.com with SMTP; 24 Jul 2002 18:08:33 -0000 Received: from smbear.attbi.com ([12.235.196.203]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020724175637.GQNT24728.rwcrmhc51.attbi.com@smbear.attbi.com> for ; Wed, 24 Jul 2002 17:56:37 +0000 Received: by smbear.attbi.com (Postfix, from userid 501) id 0D38651FB; Wed, 24 Jul 2002 11:04:40 -0700 (PDT) Message-Id: <20020724180440.0D38651FB@smbear.attbi.com> Date: Wed, 24 Jul 2002 11:16:00 -0000 From: geb@attbi.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7394: X-SW-Source: 2002-07/txt/msg00654.txt.bz2 List-Id: >Number: 7394 >Category: c++ >Synopsis: >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Wed Jul 24 11:16:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gary Barnes >Release: 3.0.1 >Organization: >Environment: System: Linux smbear.attbi.com 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ./configure --prefix=/usr/local >Description: Compiler says to submit a bug report. >How-To-Repeat: g++ -c foo.cc -g -MMD -frepo -ansi -pedantic -fshort-enums -W -Wall -Wundef \ -Wshadow -Wpointer_arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \ -Wconversion -Wsign-compare -Wredundant-decls -Wunreachable-code -Wmissing-declarations \ -Winline -fmessage-length=99999 -Werror foo.cc: In instantiation of `One::Two::One_Two': foo.cc:44: instantiated from here foo.cc:5: Internal compiler error in retrieve_specialization, at cp/pt.c:740 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. foo.cc has no #includes's. The code is below. namespace One { namespace Two { namespace Three { template class One_Two_Three { public: One_Two_Three () : I (2) {}; int I; void In123 (int _I); }; } } } namespace One { namespace Two { template class One_Two { public: One_Two () : J (1) {}; int J; void In12 (int _J); private: int K; template friend class One::Two::Three::One_Two_Three; typedef One::Two::Three::One_Two_Three Friend123; Friend123 Our_Friend; }; } } #if 0 template void One::Two::Three::One_Two_Three ::In123 (int _I) { I = _I; } template void One::Two::One_Two ::In12 (int _J) { J = _J } #endif int main (int, char**) { auto One::Two::One_Two X; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: