This is the mail archive of the gcc-bugs@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]

[Bug c++/13558] [3.4 Regression] ICE (illegal code) at cp/friend.c:200


------- Additional Comments From gdr at integrable-solutions dot net  2004-01-10 02:24 -------
Subject: Re:  [3.4 Regression] ICE (illegal code) at cp/friend.c:200

"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:

| Gaby,
| 
| which DR are you referring to? There is an old DR (360 IIRC) which says that we 
| don't need typename in elaborated type specifiers, thus allowing:
| 
| friend class T::X;

see
   
   http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1520.pdf

that paper was discussed by both EWG and CWG.  The executive summary
is that 

   friend T;

is allowed -- there are some few restrictions on T, but the class-key
"class" is no longer required.  

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13558


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