re PR c++/79184 (-Wint-in-bool-context triggered erroneously in template parameter)
authorMarek Polacek <polacek@redhat.com>
Fri, 10 Feb 2017 16:33:45 +0000 (16:33 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 10 Feb 2017 16:33:45 +0000 (16:33 +0000)
commit3799a5b853ef08d781407009427f9ddc9a6ec7be
treea4bcc54abde1d36997602780f82030ac500335ec
parent6f4f30bf3142fe3454345be587b373aa457078d3
re PR c++/79184 (-Wint-in-bool-context triggered erroneously in template parameter)

PR c++/79184
* cvt.c (ocp_convert): Add a sentinel against -Wint-in-bool-context
if warnings shouldn't be given.

* g++.dg/warn/Wint-in-bool-context-1.C: New.

From-SVN: r245335
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wint-in-bool-context-1.C [new file with mode: 0644]