invoke.texi (-Wcatch-value=): Document new warning option.
authorVolker Reichelt <v.reichelt@netcologne.de>
Thu, 25 May 2017 17:05:07 +0000 (17:05 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 25 May 2017 17:05:07 +0000 (17:05 +0000)
commit63dbcd13e93578e21e0717d4990c1701d6957e3e
tree33570c2d557c1068f7b7f286e8a8d7adf1becc24
parent932f48ac85f5111b1f3666b2c15718db2d10bcbf
invoke.texi (-Wcatch-value=): Document new warning option.

        * doc/invoke.texi (-Wcatch-value=): Document new warning option.

        * c.opt (Wcatch-value=): New C++ warning flag.

        * semantics.c (finish_handler_parms): Warn about non-reference
        * type
        catch handlers.

        * g++.dg/warn/Wcatch-value-1.C: New test.
        * g++.dg/warn/Wcatch-value-2.C: New test.
        * g++.dg/warn/Wcatch-value-3.C: New test.

From-SVN: r248466
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wcatch-value-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wcatch-value-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wcatch-value-3.C [new file with mode: 0644]