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-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


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