Commit 82d6b018 by Mark Mitchell Committed by Mark Mitchell

name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P, not IDENTIFIER_OPNAME_P.

	* 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
parent e3e1fa67
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
......
......@@ -2768,7 +2768,7 @@ do_class_using_decl (tree scope, tree name)
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.
struct A {
};
template <typename T>
struct S : public A {
using A::operator(); // { dg-error "no member" }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment