* decl2.c (build_memfn_type): Skip invalid functions and class types.
* g++.dg/other/ptrmem7.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113615
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-05-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27447
+ * decl2.c (build_memfn_type): Skip invalid functions and class types.
+
2006-05-06 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27427
tree raises;
int type_quals;
+ if (fntype == error_mark_node || ctype == error_mark_node)
+ return error_mark_node;
+
type_quals = quals & ~TYPE_QUAL_RESTRICT;
ctype = cp_build_qualified_type (ctype, type_quals);
fntype = build_method_type_directly (ctype, TREE_TYPE (fntype),
+2006-05-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27447
+ * g++.dg/other/ptrmem7.C: New test.
+
2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR target/27421
--- /dev/null
+// PR c++/27447
+// { dg-do compile }
+
+void (A::* p)(); // { dg-error "declared|token" }