diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-03-21 07:04:07 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-03-21 07:04:07 +0000 |
commit | 963142fcd554cf2ccfab0d85062164fb0da3fb84 (patch) | |
tree | a469b17f94bb3b43828f058644f21f564345c6fe /gcc/cp/decl2.c | |
parent | f3cd0185705330987114d311f0c3d9a172c543fb (diff) | |
download | gcc-963142fcd554cf2ccfab0d85062164fb0da3fb84.zip gcc-963142fcd554cf2ccfab0d85062164fb0da3fb84.tar.gz gcc-963142fcd554cf2ccfab0d85062164fb0da3fb84.tar.bz2 |
decl2.c (arg_assoc_class): Correct check for namespace-scope friends.
* cp/decl2.c (arg_assoc_class): Correct check for namespace-scope
friends.
* cp/pt.c (instantiate_class_template): Fix formatting.
* g++.dg/template/friend17.C: New test.
From-SVN: r64645
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 1ba80d7..751d0f6 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -3963,7 +3963,7 @@ arg_assoc_class (struct arg_lookup *k, tree type) friends = TREE_CHAIN (friends)) /* Only interested in global functions with potentially hidden (i.e. unqualified) declarations. */ - if (decl_namespace (TREE_VALUE (friends)) == context) + if (CP_DECL_CONTEXT (TREE_VALUE (friends)) == context) if (add_function (k, TREE_VALUE (friends))) return true; |