PR c++/2019
* friend.c (add_friend): Don't display previous declaration in
case of duplicate friend warning.
From-SVN: r73268
+2003-11-05 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
+
+ PR c++/2019
+ * friend.c (add_friend): Don't display previous declaration in
+ case of duplicate friend warning.
+
2003-11-02 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/9810
if (decl == TREE_VALUE (friends))
{
if (complain)
- {
- warning ("`%D' is already a friend of class `%T'",
- decl, type);
- cp_warning_at ("previous friend declaration of `%D'",
- TREE_VALUE (friends));
- }
+ warning ("`%D' is already a friend of class `%T'",
+ decl, type);
return;
}
}