re PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_ex...
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Wed, 16 Jul 2003 15:42:15 +0000 (15:42 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Wed, 16 Jul 2003 15:42:15 +0000 (15:42 +0000)
commit866eb556c2328fa391890173a91c3108db66317b
treece989dcd709f54247a75f3bf17e5c9c1ca60836c
parent94b7906a3a8ea86c701bef97d31f6fdf22db7fc7
re PR c++/5421 (friends+templates: ICE: expected identifier_node, have template_id_expr in grokfndecl, at cp/decl.c:8835)

PR c++/5421
* decl.c (grokdeclarator): Handle TEMPLATE_ID_EXPR if friend
is a member of other class.
* friend.c (do_friend): Don't build TEMPLATE_DECL if friend
is a specialization of function template.

* g++.dg/template/friend21.C: New test.

From-SVN: r69457
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/friend.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/friend21.C [new file with mode: 0644]