re PR c++/16706 (ICE in finish_member_declaration, at cp/semantics.c:2126)
authorKriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
Tue, 24 Aug 2004 14:13:50 +0000 (14:13 +0000)
committerKriang Lerdsuwanakij <lerdsuwa@gcc.gnu.org>
Tue, 24 Aug 2004 14:13:50 +0000 (14:13 +0000)
commite59f7322effb7542b4311ec731ce45565ef600f6
tree6ae9210737b086cc8b633394372bbf40e57e713a
parenta1a28bb5826211ea2253231186417fb3cb6de6dd
re PR c++/16706 (ICE in finish_member_declaration, at cp/semantics.c:2126)

PR c++/16706
* search.c (friend_accessible_p): Increment processing_template_decl
when deal with TEMPLATE_DECL of SCOPE.

* g++.dg/template/crash21.C: New test.
* g++.dg/template/crash22.C: Likewise.

From-SVN: r86482
gcc/cp/ChangeLog
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/crash21.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash22.C [new file with mode: 0644]