summaryrefslogtreecommitdiff
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-27 23:06:46 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>1998-05-27 23:06:46 +0000
commit899aca6de67c3dedfeb102057769e4a52e55800d (patch)
treebee3f16d2dd688a7a91dc8766c37f747ba1e11bb /gcc/cp/friend.c
parentba853cb13da304fde8ae5247482f0365e42ae116 (diff)
downloadgcc-899aca6de67c3dedfeb102057769e4a52e55800d.tar.gz
* friend.c (do_friend): Clarify template warning.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20108 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index 8adeb600450..c6f68bd07f0 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -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;
}
}