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: 4 Jan 2004 16:54:31 -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-04 16:54 -------
Subject: Re: [3.4 Regression] ICE (illegal code) at cp/friend.c:200
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Note also this testcase ICE in the same place and the patch fixes it also:
| class bar { friend int; };
|
| The error messages after for the testcase here:
| pr13558.cc:1: error: a class-key must be used when declaring a friend
I don't like this new diagnostic because it is misleading.
We've got a DR resolution that allows things like
friend typename T::X;
It would be interesting to read the paper in the pre-Kona2003 mailing
by Mike Miller on these issues.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13558