/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Aug 2007 22:07:31 +0000 (22:07 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Aug 2007 22:07:31 +0000 (22:07 +0000)
commite5252ce92e51022e4ae34ad0ef2ab0fa743447ae
treecfdef9633c5c66f00701d87609abaf55113a1456
parentb1b7c0c4f7f54c51f0475ad23b170495083d6fd4
/cp
2007-08-14  Paolo Carlini  <pcarlini@suse.de>

PR c++/27211
* decl2.c (check_classfn): Return error_mark_node in case of error;
in that case, do not call add_method.
* decl.c (start_decl): Deal with check_classfn returning
error_mark_node.
(grokfndecl): Likewise.
* pt.c (tsubst_friend_function): Likewise.

/testsuite
2007-08-14  Paolo Carlini  <pcarlini@suse.de>

PR c++/27211
* g++.dg/template/error27.C: New.
* g++.dg/template/error28.C: New.
* g++.dg/other/pr28304.C: Adjust.
* g++.old-deja/g++.mike/p811.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127492 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr28304.C
gcc/testsuite/g++.dg/template/error27.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/error28.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.mike/p811.C