]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cp-tree.h: Declare warn_nontemplate_friend.
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 3 Sep 1998 16:09:59 +0000 (16:09 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 3 Sep 1998 16:09:59 +0000 (16:09 +0000)
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

gcc/cp/lang-options.h

index e6ad6595b100761e97c22f435a635a366eaf9bc3..32f5ff9050928baf41e9457f9e22169ccdc7b7fa 100644 (file)
@@ -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" },
+