[Bug c++/21498] [c++0x] friend declaration can name non-class with class-key

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Sep 10 03:30:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21498

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |

--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-10 00:03:36 UTC ---
(In reply to comment #14)
> 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

... which you did for PR 47721 :)



More information about the Gcc-bugs mailing list