diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-02-03 16:46:22 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2006-02-03 16:46:22 +0000 |
commit | 82d6b0182ace61b335e1bf81ceb600b4efab4a74 (patch) | |
tree | e364a3f0e79752dd22c9cc968955e6fb5b29b979 /gcc/cp | |
parent | e3e1fa678b151d393a82f55122d00b29d99513f3 (diff) | |
download | gcc-82d6b0182ace61b335e1bf81ceb600b4efab4a74.zip gcc-82d6b0182ace61b335e1bf81ceb600b4efab4a74.tar.gz gcc-82d6b0182ace61b335e1bf81ceb600b4efab4a74.tar.bz2 |
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
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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 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; |