From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9496 invoked by alias); 13 Dec 2001 04:16:02 -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 9460 invoked by uid 71); 13 Dec 2001 04:16:01 -0000 Date: Wed, 12 Dec 2001 20:16:00 -0000 Message-ID: <20011213041601.9453.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Martin Sebor Subject: Re: c++/5094: partial specialisation cannot be friend?? Reply-To: Martin Sebor X-SW-Source: 2001-12/txt/msg00779.txt.bz2 List-Id: The following reply was made to PR c++/5094; it has been noted by GNATS. From: Martin Sebor To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: c++/5094: partial specialisation cannot be friend?? Date: Wed, 12 Dec 2001 21:23:58 -0700 rodrigc@gcc.gnu.org wrote: > > 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: Although I also have respect for the latest version of Compaq C++, it should be noted that the compiler isn't "the ultimate authority" on the validity of C++ code. What clenches it is that 14.5.3, p9 explicitly prohibits friend declarations of partial specializations: -9- Friend declarations shall not declare partial specializations. [Example: template class A { }; class X { template friend class A; // error }; —end example] Regards Martin