This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/6289: partial template specialization and friend


The following reply was made to PR c++/6289; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@math.ethz.ch>
To: reichelt@igpm.rwth-aachen.de, <gcc-gnats@gcc.gnu.org>,
        <jototland@hotmail.com>, <gcc-bugs@gcc.gnu.org>
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 <typename T>
 > 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
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]