diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 07:04:07 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-21 07:04:07 +0000 |
commit | f5083c1bb992083bd438841be220b94c3b35ad1f (patch) | |
tree | a469b17f94bb3b43828f058644f21f564345c6fe /gcc/cp/pt.c | |
parent | 9e1f4e74bb657bdc619a75c35904613520cbd3db (diff) | |
download | gcc-f5083c1bb992083bd438841be220b94c3b35ad1f.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 87430b67ffb..8523c9671cc 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -5548,12 +5548,8 @@ instantiate_class_template (type) --processing_template_decl; } else - { - /* Build new DECL_FRIENDLIST. */ - - add_friend (type, - tsubst_friend_function (t, args)); - } + /* Build new DECL_FRIENDLIST. */ + add_friend (type, tsubst_friend_function (t, args)); } } |