]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/22147 (ICE in get_bindings)
authorMark Mitchell <mark@codesourcery.com>
Tue, 27 Sep 2005 23:31:57 +0000 (23:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 27 Sep 2005 23:31:57 +0000 (23:31 +0000)
commitc43e95f8f5f67265f05633813f3950624bb4064b
tree1d48bc0ddc17e9104af7209393174573d9ace1ff
parent57f0d086d592e6c9bb44c330939b9dda63d24934
re PR c++/22147 (ICE in get_bindings)

PR c++/22147
* name-lookup.c (maybe_process_template_type_declaration): Don't
treat forward declarations of classes as templates just because
we're processing_template_decl.
* pt.c (tsubst_decl): Clear DECL_TEMPLATE_INFO for friend
functions.

PR c++/22147
* g++.dg/template/friend37.C: New test.
* g++.dg/parse/crash28.C: Adjust error markers.

From-SVN: r104713
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/crash28.C
gcc/testsuite/g++.dg/template/friend37.C [new file with mode: 0644]