aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/friend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/friend.c')
-rw-r--r--gcc/cp/friend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c
index 3c63ea6..3e018e8 100644
--- a/gcc/cp/friend.c
+++ b/gcc/cp/friend.c
@@ -230,8 +230,8 @@ make_friend_class (tree type, tree friend_type, bool complain)
(possibly cv-qualified) class type, that class is declared as a
friend; otherwise, the friend declaration is ignored.
- So don't complain in C++0x mode. */
- if (cxx_dialect < cxx0x)
+ So don't complain in C++11 mode. */
+ if (cxx_dialect < cxx11)
pedwarn (input_location, complain ? 0 : OPT_Wpedantic,
"invalid type %qT declared %<friend%>", friend_type);
return;