This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21498] [c++0x] friend declaration can name non-class with class-key
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2009 18:40:36 -0000
- Subject: [Bug c++/21498] [c++0x] friend declaration can name non-class with class-key
- References: <bug-21498-8718@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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