Commit f566cc1b by Steve Ellcey Committed by Steve Ellcey

re PR c++/28304 (ICE looking up invalid member template)

	PR c++/28304
	* decl2.c (check_classfn): Return NULL_TREE on error.

From-SVN: r115521
parent 1c1534e9
2006-07-17 Steve Ellcey <sje@cup.hp.com>
PR c++/28304
* decl2.c (check_classfn): Return NULL_TREE on error.
2006-07-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2006-07-17 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28250 PR c++/28250
......
...@@ -673,8 +673,11 @@ check_classfn (tree ctype, tree function, tree template_parms) ...@@ -673,8 +673,11 @@ check_classfn (tree ctype, tree function, tree template_parms)
else if (!COMPLETE_TYPE_P (ctype)) else if (!COMPLETE_TYPE_P (ctype))
cxx_incomplete_type_error (function, ctype); cxx_incomplete_type_error (function, ctype);
else else
error ("no %q#D member function declared in class %qT", {
function, ctype); error ("no %q#D member function declared in class %qT",
function, ctype);
return NULL_TREE;
}
/* If we did not find the method in the class, add it to avoid /* If we did not find the method in the class, add it to avoid
spurious errors (unless the CTYPE is not yet defined, in which spurious errors (unless the CTYPE is not yet defined, in which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment