This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13558] [3.4 Regression] ICE (illegal code) at cp/friend.c:200
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2004 02:24:41 -0000
- Subject: [Bug c++/13558] [3.4 Regression] ICE (illegal code) at cp/friend.c:200
- References: <20040103211215.13558.pommier@gmm.insa-tlse.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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