diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 1998-05-07 22:06:26 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-05-07 22:06:26 -0400 |
commit | 2c73f9f57ac31b4c79c8e9282c748e3294cd7e95 (patch) | |
tree | b63320f941aa58f44dbdc20a5d48fb3384cb73c1 /gcc/cp/friend.c | |
parent | 0d33d22e9ff0d6cba03b7ef6f099f215b260c7e1 (diff) | |
download | gcc-2c73f9f57ac31b4c79c8e9282c748e3294cd7e95.zip gcc-2c73f9f57ac31b4c79c8e9282c748e3294cd7e95.tar.gz gcc-2c73f9f57ac31b4c79c8e9282c748e3294cd7e95.tar.bz2 |
massive namespace patch
From-SVN: r19631
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r-- | gcc/cp/friend.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c index 8538ba3..52a84a5 100644 --- a/gcc/cp/friend.c +++ b/gcc/cp/friend.c @@ -118,6 +118,10 @@ is_friend (type, supplicant) else context = NULL_TREE; + /* A namespace is not friend to anybody. */ + if (context && TREE_CODE (context) == NAMESPACE_DECL) + context = NULL_TREE; + if (context) return is_friend (type, context); |