diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-08-18 10:49:17 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-08-18 10:49:17 +0000 |
commit | 2ae7bada94874ae1a4c6f0b4d3c1027c38e00aea (patch) | |
tree | 5bfe74fd5b7f783f3e45ddca65fc5f3f345be76f /gcc/cp/friend.c | |
parent | e3b4d2e9a6291d9f483fca967c6c57ced98a59b2 (diff) | |
download | gcc-2ae7bada94874ae1a4c6f0b4d3c1027c38e00aea.zip gcc-2ae7bada94874ae1a4c6f0b4d3c1027c38e00aea.tar.gz gcc-2ae7bada94874ae1a4c6f0b4d3c1027c38e00aea.tar.bz2 |
decl.c (member_function_or_else): Use cp_error ...
* decl.c (member_function_or_else): Use cp_error ... %T.
(grokdeclarator): Likewise.
(start_method): Likewise.
* friend.c (make_friend_class): Use cp_pedwarn ... %T.
From-SVN: r35784
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r-- | gcc/cp/friend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c index f4a5a57..1a4df14 100644 --- a/gcc/cp/friend.c +++ b/gcc/cp/friend.c @@ -217,8 +217,8 @@ make_friend_class (type, friend_type) is_template_friend = 1; else if (same_type_p (type, friend_type)) { - pedwarn ("class `%s' is implicitly friends with itself", - TYPE_NAME_STRING (type)); + cp_pedwarn ("class `%T' is implicitly friends with itself", + type); return; } else |