Commit dd2b44ff by Jason Merrill Committed by Jason Merrill

* friend.c (do_friend): Clarify template warning.

From-SVN: r20108
parent 26963cc3
1998-05-27 Jason Merrill <jason@yorick.cygnus.com>
* friend.c (do_friend): Clarify template warning.
1998-05-27 Mark Mitchell <mark@markmitchell.com> 1998-05-27 Mark Mitchell <mark@markmitchell.com>
* decl.c (shadow_label): Don't treat decls as identifiers. * decl.c (shadow_label): Don't treat decls as identifiers.
......
...@@ -430,8 +430,9 @@ do_friend (ctype, declarator, decl, parmdecls, flags, quals, funcdef_flag) ...@@ -430,8 +430,9 @@ do_friend (ctype, declarator, decl, parmdecls, flags, quals, funcdef_flag)
warning (" declares a non-template function"); warning (" declares a non-template function");
if (! explained) if (! explained)
{ {
warning (" unless you compile with -fguiding-decls"); warning (" (if this is not what you intended, make sure");
warning (" or add <> after the function name"); warning (" the function template has already been declared,");
warning (" and add <> after the function name here)");
explained = 1; explained = 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment