[Bug c++/13558] [3.4 Regression] ICE (illegal code) at cp/friend.c:200
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Sat Jan 10 02:24:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list