+2001-05-14 Nick Clifton <nickc@cambridge.redhat.com>
+
+ * decl.c (duplicate_decls): Suppress warning about duplicate
+ decls if the first decl is a friend.
+
Mon May 14 17:34:48 CEST 2001 Jan Hubicka <jh@suse.cz>
* i386.h (TARGET_64BIT): Define to constant if !TARGET_BI_ARCH
/* Don't warn about extern decl followed by definition. */
&& !(DECL_EXTERNAL (olddecl) && ! DECL_EXTERNAL (newdecl))
/* Don't warn about friends, let add_friend take care of it. */
- && ! DECL_FRIEND_P (newdecl))
+ && ! (DECL_FRIEND_P (newdecl) || DECL_FRIEND_P (olddecl)))
{
cp_warning ("redundant redeclaration of `%D' in same scope", newdecl);
cp_warning_at ("previous declaration of `%D'", olddecl);