2007-08-31 Paolo Carlini <pcarlini@suse.de>
PR c++/32113
* search.c (lookup_member): Check the name argument for
error_mark_node.
/testsuite
2007-08-31 Paolo Carlini <pcarlini@suse.de>
PR c++/32113
* g++.dg/template/crash70.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127963
138bc75d-0d04-0410-961f-
82ee72b054a4
2007-08-31 Paolo Carlini <pcarlini@suse.de>
+ PR c++/32113
+ * search.c (lookup_member): Check the name argument for
+ error_mark_node.
+
+2007-08-31 Paolo Carlini <pcarlini@suse.de>
+
PR c++/33212
* parser.c (cp_parser_trait_expr): Check rerurn value of
cp_parser_type_id.
const char *errstr = 0;
+ if (name == error_mark_node)
+ return NULL_TREE;
+
gcc_assert (TREE_CODE (name) == IDENTIFIER_NODE);
if (TREE_CODE (xbasetype) == TREE_BINFO)
2007-08-31 Paolo Carlini <pcarlini@suse.de>
+ PR c++/32113
+ * g++.dg/template/crash70.C: New.
+
+2007-08-31 Paolo Carlini <pcarlini@suse.de>
+
PR c++/33212
* g++.dg/ext/is_class_error.C: New.
--- /dev/null
+// PR c++/32113
+
+template<int> struct A;
+
+template<typename T> void foo (A<&T::template i>); // { dg-error "not a template" }
+
+template void foo<A<0> > (A<0>); // { dg-error "does not match" }