re PR c++/47721 ([C++0x] Updated friendship rules?)
authorJason Merrill <jason@redhat.com>
Fri, 27 May 2011 04:04:40 +0000 (00:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 27 May 2011 04:04:40 +0000 (00:04 -0400)
commit866e414678bba1426d1a777eb4a2ae591915b092
tree7375a36b894bcab99a69b2597ab44cb65898175b
parent5ac537d7b4983abe5eebe510c798bede816c8165
re PR c++/47721 ([C++0x] Updated friendship rules?)

PR c++/47721
* parser.c (cp_parser_member_declaration): Allow friend T.
* friend.c (make_friend_class): Ignore non-classes.
* pt.c (instantiate_class_template_1): Handle TEMPLATE_TYPE_PARM.

From-SVN: r174319
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/friend1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/friend2.C [new file with mode: 0644]