From 82d6b0182ace61b335e1bf81ceb600b4efab4a74 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 3 Feb 2006 16:46:22 +0000 Subject: 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/name-lookup.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/cp') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index eb24a75..8e57bdc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-02-03 Mark Mitchell + + * name-lookup.c (do_class_using_decl): Use IDENTIFIER_TYPENAME_P, + not IDENTIFIER_OPNAME_P. + 2006-01-31 Mark Mitchell PR c++/25342 diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index ed7dd53..761cf95 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -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; -- cgit v1.1