From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 725 invoked by alias); 13 Dec 2001 03:58:55 -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 698 invoked by uid 61); 13 Dec 2001 03:58:51 -0000 Date: Wed, 12 Dec 2001 19:58:00 -0000 Message-ID: <20011213035851.697.qmail@sources.redhat.com> To: benko@sztaki.hu, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: rodrigc@gcc.gnu.org X-Mailer: gnatsweb 2.9.2 Subject: Re: c++/5094: partial specialisation cannot be friend?? X-SW-Source: 2001-12/txt/msg00775.txt.bz2 List-Id: Synopsis: partial specialisation cannot be friend?? State-Changed-From-To: open->analyzed State-Changed-By: rodrigc State-Changed-When: Wed Dec 12 19:58:51 2001 State-Changed-Why: This is not a bug in gcc. This is not legal code. When I compile with the Digital Unix C++ compiler, I get the following compilation errors: cxx: Error: specfriend.cc, line 67: "c" has already been declared in the current scope friend class c; -----------------^ cxx: Error: specfriend.cc, line 71: class "c" may not have a template argument list friend class d >; -----------------^ cxx: Error: specfriend.cc, line 71: class "c" may not have a template argument list friend class d >; -----------------^ cxx: Error: specfriend.cc, line 71: invalid partial specialization -- class "d<>" is already fully specialized friend class d >; ---------------^ cxx: Error: specfriend.cc, line 83: class "c" may not have a template argument list friend class c; ---------------^ cxx: Info: 5 errors detected in the compilation of "specfriend.cc". http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5094&database=gcc