aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>1998-09-03 16:09:59 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>1998-09-03 16:09:59 +0000
commit56e3f54ca01ad037f6d84e382c1b769c406eaf33 (patch)
tree57fe4a97b9dd1e9d47a320b1a20061df87b48d5a /gcc
parent9018ce4d49199aaeb712d37d9e733bb08a2436fd (diff)
downloadgcc-56e3f54ca01ad037f6d84e382c1b769c406eaf33.zip
gcc-56e3f54ca01ad037f6d84e382c1b769c406eaf33.tar.gz
gcc-56e3f54ca01ad037f6d84e382c1b769c406eaf33.tar.bz2
cp-tree.h: Declare warn_nontemplate_friend.
S 1998-09-03 Benjamin Kosnik <bkoz@cygnus.com> * cp-tree.h: Declare warn_nontemplate_friend. * decl2.c (lang_decode_option): Set. * lang-options.h: Add -Wnon-template-friend. * friend.c (do_friend): Use to toggle non-template function warning. g++/17054 From-SVN: r22219
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/lang-options.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/cp/lang-options.h b/gcc/cp/lang-options.h
index e6ad659..32f5ff9 100644
--- a/gcc/cp/lang-options.h
+++ b/gcc/cp/lang-options.h
@@ -106,8 +106,8 @@ DEFINE_LANG_NAME ("C++")
{ "-Wno-return-type", "" },
{ "-Woverloaded-virtual", "Warn about overloaded virtual function names" },
{ "-Wno-overloaded-virtual", "" },
- { "-Wctor-dtor-privacy", "Warn when all ctors/dtors are private" },
- { "-Wno-ctor-dtor-privacy", "" },
+ { "-Wctor-dtor-privacy", "" },
+ { "-Wno-ctor-dtor-privacy", "Don't warn when all ctors/dtors are private" },
{ "-Wnon-virtual-dtor", "Warn about non virtual destructors" },
{ "-Wno-non-virtual-dtor", "" },
{ "-Wextern-inline", "Warn when a function is declared extern, then inline" },
@@ -116,11 +116,14 @@ DEFINE_LANG_NAME ("C++")
{ "-Wno-reorder", "" },
{ "-Wsynth", "Warn when synthesis behaviour differs from Cfront" },
{ "-Wno-synth", "" },
- { "-Wpmf-conversions", "Warn when type converting pointers to member functions" },
- { "-Wno-pmf-conversions", "" },
+ { "-Wpmf-conversions", "" },
+ { "-Wno-pmf-conversions", "Don't warn when type converting pointers to member functions" },
{ "-Weffc++", "Warn about violations of Effective C++ style rules" },
{ "-Wno-effc++", "" },
{ "-Wsign-promo", "Warn when overload promotes from unsigned to signed" },
{ "-Wno-sign-promo", "" },
{ "-Wold-style-cast", "Warn if a C style cast is used in a program" },
{ "-Wno-old-style-cast", "" },
+ { "-Wnon-template-friend", "" },
+ { "-Wno-non-template-friend", "Don't warn when non-templatized friend functions are declared within a template" },
+