c.opt (Wmultiple-inheritance, [...]): New C++ warnings.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 22 Sep 2015 15:34:49 +0000 (15:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 22 Sep 2015 15:34:49 +0000 (15:34 +0000)
commit6b333269be81396c4ed6b700bf8bd3e0adeb50dc
treebcb65e277ee9e4c184bb3b1253a5dc833a787791
parenta75f15742ab04d48fb599c9b6523ffbe8f5d837c
c.opt (Wmultiple-inheritance, [...]): New C++ warnings.

c-family/
* c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
Wnamespaces): New C++ warnings.

cp/
* decl.c (xref_basetypes): Check virtual and/or multiple
inheritance warning.
* parser.c (cp_parser_namespace_definition): Check namespaces
warning.
* pt.c (push_template_decl_real): Check templates warning.

* doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
-Wtemplates, -Wnamespaces): Document.

testsuite/
* g++.dg/diagostic/disable.C: New.

From-SVN: r228019
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/disable.C [new file with mode: 0644]