* friend.c (do_friend): Clarify template warning.
authorJason Merrill <jason@yorick.cygnus.com>
Wed, 27 May 1998 23:06:46 +0000 (23:06 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 27 May 1998 23:06:46 +0000 (19:06 -0400)
From-SVN: r20108

gcc/cp/ChangeLog
gcc/cp/friend.c

index 70caa2d..f47ae94 100644 (file)
@@ -1,3 +1,7 @@
+1998-05-27  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * friend.c (do_friend): Clarify template warning.
+
 1998-05-27  Mark Mitchell  <mark@markmitchell.com>
 
        * decl.c (shadow_label): Don't treat decls as identifiers.
index 8adeb60..c6f68bd 100644 (file)
@@ -430,8 +430,9 @@ do_friend (ctype, declarator, decl, parmdecls, flags, quals, funcdef_flag)
              warning ("  declares a non-template function");
              if (! explained)
                {
-                 warning ("  unless you compile with -fguiding-decls");
-                 warning ("  or add <> after the function name");
+                 warning ("  (if this is not what you intended, make sure");
+                 warning ("  the function template has already been declared,");
+                 warning ("  and add <> after the function name here)");
                  explained = 1;
                }
            }