summaryrefslogtreecommitdiff
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index a2d0c4d8d70..410eaf5c82b 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -243,12 +243,7 @@ make_friend_class (type, friend_type)
tree classes;
int is_template_friend;
- if (IS_SIGNATURE (type))
- {
- error ("`friend' declaration in signature definition");
- return;
- }
- if (IS_SIGNATURE (friend_type) || ! IS_AGGR_TYPE (friend_type))
+ if (! IS_AGGR_TYPE (friend_type))
{
cp_error ("invalid type `%T' declared `friend'", friend_type);
return;