+2006-06-25 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/28051
+ * mangle.c (mangle_conv_op_name_for_type): Check for
+ invalid types.
+ * name-lookup.c (push_class_level_binding): Robustify.
+ (do_class_using_decl): Return early if name is error_mark_node.
+
2006-06-23 Steve Ellcey <sje@cup.hp.com>
PR c++/28114
void **slot;
tree identifier;
+ if (type == error_mark_node)
+ return error_mark_node;
+
if (conv_type_names == NULL)
conv_type_names = htab_create_ggc (31, &hash_type, &compare_type, NULL);
if (!class_binding_level)
POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, true);
+ if (name == error_mark_node)
+ POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, false);
+
/* Check for invalid member names. */
gcc_assert (TYPE_BEING_DEFINED (current_class_type));
/* We could have been passed a tree list if this is an ambiguous
tree base_binfo;
int i;
+ if (name == error_mark_node)
+ return NULL_TREE;
+
if (!scope || !TYPE_P (scope))
{
error ("using-declaration for non-member at class scope");
+2006-06-25 Lee Millward <lee.millward@gmail.com>
+
+ PR c++/28051
+ * g++.dg/template/using13.C: New test.
+
2006-06-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/28081
--- /dev/null
+//PR c++/28051
+
+template<int> struct A {};
+
+template<int N> struct B : A<N>
+{
+ using A<N>::operator typename A<N>::X; // { dg-error "no type named" }
+};
+
+B<0> b;
+