* name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P,
not IDENTIFIER_OPNAME_P.
* g++.dg/template/using12.C: New test.
From-SVN: r110546
+2006-02-03 Mark Mitchell <mark@codesourcery.com>
+
+ * name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P,
+ not IDENTIFIER_OPNAME_P.
+
2006-01-31 Mark Mitchell <mark@codesourcery.com>
PR c++/25342
scope_dependent_p = dependent_type_p (scope);
name_dependent_p = (scope_dependent_p
- || (IDENTIFIER_OPNAME_P (name)
+ || (IDENTIFIER_TYPENAME_P (name)
&& dependent_type_p (TREE_TYPE (name))));
bases_dependent_p = false;
+2006-02-03 Mark Mitchell <mark@codesourcery.com>
+
+ * g++.dg/template/using12.C: New test.
+
2006-02-03 Alan Modra <amodra@bigpond.net.au>
* gcc.target/powerpc/pr25960.c: New test.
--- /dev/null
+struct A {
+};
+
+template <typename T>
+struct S : public A {
+ using A::operator(); // { dg-error "no member" }
+};