OSDN Git Service

PR c++/47721
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 May 2011 04:04:40 +0000 (04:04 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 May 2011 04:04:40 +0000 (04:04 +0000)
commit145c81fd4bfa1591bebf627406626252b7ef45a1
tree7375a36b894bcab99a69b2597ab44cb65898175b
parent17a491c9cbb121e039c128b9e114465a9d802ee7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174319 138bc75d-0d04-0410-961f-82ee72b054a4
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]