From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2810 invoked by alias); 13 Dec 2001 04:06:05 -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 2784 invoked by uid 71); 13 Dec 2001 04:06:04 -0000 Date: Wed, 12 Dec 2001 20:06:00 -0000 Message-ID: <20011213040603.2783.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: rodrigc@gcc.gnu.org Subject: Re: c++/5094: partial specialisation cannot be friend?? Reply-To: rodrigc@gcc.gnu.org X-SW-Source: 2001-12/txt/msg00776.txt.bz2 List-Id: The following reply was made to PR c++/5094; it has been noted by GNATS. From: rodrigc@gcc.gnu.org To: benko@sztaki.hu, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/5094: partial specialisation cannot be friend?? Date: 13 Dec 2001 03:58:51 -0000 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