Commit 56e3f54c by Benjamin Kosnik

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
parent 9018ce4d
...@@ -106,8 +106,8 @@ DEFINE_LANG_NAME ("C++") ...@@ -106,8 +106,8 @@ DEFINE_LANG_NAME ("C++")
{ "-Wno-return-type", "" }, { "-Wno-return-type", "" },
{ "-Woverloaded-virtual", "Warn about overloaded virtual function names" }, { "-Woverloaded-virtual", "Warn about overloaded virtual function names" },
{ "-Wno-overloaded-virtual", "" }, { "-Wno-overloaded-virtual", "" },
{ "-Wctor-dtor-privacy", "Warn when all ctors/dtors are private" }, { "-Wctor-dtor-privacy", "" },
{ "-Wno-ctor-dtor-privacy", "" }, { "-Wno-ctor-dtor-privacy", "Don't warn when all ctors/dtors are private" },
{ "-Wnon-virtual-dtor", "Warn about non virtual destructors" }, { "-Wnon-virtual-dtor", "Warn about non virtual destructors" },
{ "-Wno-non-virtual-dtor", "" }, { "-Wno-non-virtual-dtor", "" },
{ "-Wextern-inline", "Warn when a function is declared extern, then inline" }, { "-Wextern-inline", "Warn when a function is declared extern, then inline" },
...@@ -116,11 +116,14 @@ DEFINE_LANG_NAME ("C++") ...@@ -116,11 +116,14 @@ DEFINE_LANG_NAME ("C++")
{ "-Wno-reorder", "" }, { "-Wno-reorder", "" },
{ "-Wsynth", "Warn when synthesis behaviour differs from Cfront" }, { "-Wsynth", "Warn when synthesis behaviour differs from Cfront" },
{ "-Wno-synth", "" }, { "-Wno-synth", "" },
{ "-Wpmf-conversions", "Warn when type converting pointers to member functions" }, { "-Wpmf-conversions", "" },
{ "-Wno-pmf-conversions", "" }, { "-Wno-pmf-conversions", "Don't warn when type converting pointers to member functions" },
{ "-Weffc++", "Warn about violations of Effective C++ style rules" }, { "-Weffc++", "Warn about violations of Effective C++ style rules" },
{ "-Wno-effc++", "" }, { "-Wno-effc++", "" },
{ "-Wsign-promo", "Warn when overload promotes from unsigned to signed" }, { "-Wsign-promo", "Warn when overload promotes from unsigned to signed" },
{ "-Wno-sign-promo", "" }, { "-Wno-sign-promo", "" },
{ "-Wold-style-cast", "Warn if a C style cast is used in a program" }, { "-Wold-style-cast", "Warn if a C style cast is used in a program" },
{ "-Wno-old-style-cast", "" }, { "-Wno-old-style-cast", "" },
{ "-Wnon-template-friend", "" },
{ "-Wno-non-template-friend", "Don't warn when non-templatized friend functions are declared within a template" },
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment