[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
Sun Jan 4 16:54:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list