PR c++/28258
* method.c (locate_copy): Check for non_reference
returning error_mark_node.
* g++/dg/other/error10.C: New test.
From-SVN: r115675
+2006-07-22 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/28258
+ * method.c (locate_copy): Check for non_reference
+ returning error_mark_node.
+
2006-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28363
if (!parms)
continue;
src_type = non_reference (TREE_VALUE (parms));
+
+ if (src_type == error_mark_node)
+ return NULL_TREE;
+
if (!same_type_ignoring_top_level_qualifiers_p (src_type, type))
continue;
if (!sufficient_parms_p (TREE_CHAIN (parms)))
+2006-07-22 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/28258
+ * g++/dg/other/error10.C: New test.
+
2006-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28363
--- /dev/null
+//PR c++/28258
+
+struct A
+{ // { dg-error "" }
+ A(void x); // { dg-error "invalid use|incomplete type|candidates" }
+};
+
+struct B : A {}; // { dg-error "no matching function for call" }
+
+B b; // { dg-error "synthesized method" }