------- Comment #14 from jason at gcc dot gnu dot org 2009-11-03 18:40 ------- In C++0x the testcase is still ill-formed, but changing "friend class" to "friend typename" makes it well-formed. I'm not going to give an error for this usage until the other usage is implemented.
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2005/n1791.pdf -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[c++0x] clause 7.1.5.3/2 of |[c++0x] friend declaration |the c++ is not enforced |can name non-class with | |class-key http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498