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
This commit is contained in:
Mark Mitchell 2006-02-03 16:46:22 +00:00 committed by Mark Mitchell
parent e3e1fa678b
commit 82d6b0182a
4 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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;

View file

@ -1,3 +1,7 @@
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.

View file

@ -0,0 +1,7 @@
struct A {
};
template <typename T>
struct S : public A {
using A::operator(); // { dg-error "no member" }
};