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++/21498] [c++0x] friend declaration can name non-class with class-key



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


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