From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31086 invoked by alias); 8 May 2002 08:46:04 -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 31071 invoked by uid 71); 8 May 2002 08:46:03 -0000 Date: Wed, 08 May 2002 01:46:00 -0000 Message-ID: <20020508084603.31070.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: c++/6289: partial template specialization and friend Reply-To: Wolfgang Bangerth X-SW-Source: 2002-05/txt/msg00226.txt.bz2 List-Id: The following reply was made to PR c++/6289; it has been noted by GNATS. From: Wolfgang Bangerth To: reichelt@igpm.rwth-aachen.de, , , Cc: Subject: Re: c++/6289: partial template specialization and friend Date: Wed, 8 May 2002 10:36:26 +0200 (CEST) > the testcase can be reduced even further to the following code snippet > which still crashes gcc 3.1 as of 20020506. > > ---------------------------snip here-------------------------- > struct A > { > typedef int type; > }; > > template > class B > { > typedef A::type X; > friend class X; > }; > ---------------------------snip here-------------------------- This is illegal, by the way, as a _real_ class is expected in a friend declaration, not a typedef. Someone may reclassify this bug as ice-on-illegal then. Regards Wolfgang ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@math.ethz.ch www: http://www.math.ethz.ch/~bangerth