]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/name-lookup.c
PR c++/22147
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2005 23:31:57 +0000 (23:31 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Sep 2005 23:31:57 +0000 (23:31 +0000)
commit439abd1dedaf7966d1922bff6dea6ef3b0428459
tree1d48bc0ddc17e9104af7209393174573d9ace1ff
parent747611a863431380133404bfe65dcd7fd91a3d12
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.

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