From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2835 invoked by alias); 5 Dec 2001 22:46:23 -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 2592 invoked by uid 71); 5 Dec 2001 22:46:08 -0000 Resent-Date: 5 Dec 2001 22:46:08 -0000 Resent-Message-ID: <20011205224608.2591.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, jsberg@bnl.gov Received:(qmail 25270 invoked from network); 5 Dec 2001 22:37:00 -0000 Received: from unknown (HELO smtpgw.bnl.gov) (130.199.3.16) by sources.redhat.com with SMTP; 5 Dec 2001 22:37:00 -0000 Received: from bnl.gov ([130.199.128.163]) by smtpgw.bnl.gov with esmtp (Exim 3.32 #1 ) id 16Bkex-0006bG-00 for ; Wed, 05 Dec 2001 17:36:59 -0500 Received: from jsberg1.cap.bnl.gov (jsberg1.cap.bnl.gov [130.199.216.122]) by bnl.gov (8.9.2/8.9.2) with ESMTP id RAA09801 for ; Wed, 5 Dec 2001 17:36:58 -0500 (EST) Received: from jsberg1.cap.bnl.gov (localhost [127.0.0.1]) by jsberg1.cap.bnl.gov (8.12.1/8.12.1) with ESMTP id fB5MawQT010642 for ; Wed, 5 Dec 2001 17:36:58 -0500 Received: (from jsberg@localhost) by jsberg1.cap.bnl.gov (8.12.1/8.12.1/Submit) id fB5MawBt010641; Wed, 5 Dec 2001 17:36:58 -0500 Message-Id:<200112052236.fB5MawBt010641@jsberg1.cap.bnl.gov> Date: Wed, 05 Dec 2001 14:46:00 -0000 From: jsberg@bnl.gov To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: c++/5023: Error declaring constructor of template class specialization as friend X-SW-Source: 2001-12/txt/msg00355.txt.bz2 List-Id: >Number: 5023 >Category: c++ >Synopsis: Error declaring constructor of template class specialization as friend >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Wed Dec 05 14:46:08 PST 2001 >Closed-Date: >Last-Modified: >Originator: >Release: 3.0.2 >Organization: >Environment: System: Linux jsberg1 2.4.9 #2 SMP Tue Aug 21 17:36:52 EDT 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-3.0.2/configure --prefix=/opt/gcc-3.0.2 >Description: This code: template class S { public: S(); private: }; class T { friend S::S(); public: T(); private: void f() const; }; template S::S() { // T t; t.f(); } S s; Compiled with this command line: c++ -c test02.cxx Gives this error test02.cxx:8: no `void S::S()' member function declared in class `S' >How-To-Repeat: >Fix: Plenty of workarounds: friend class S; or template friend S::S(); >Release-Note: >Audit-Trail: >Unformatted: