re PR c++/66572 (Bogus Wlogical-op warning for operands coming from template instanti...
authorMarek Polacek <polacek@redhat.com>
Thu, 23 Jul 2015 18:57:25 +0000 (18:57 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 23 Jul 2015 18:57:25 +0000 (18:57 +0000)
commit04e4dbd07cd613e086488a735d25e05ae939e117
treec034e8d0c75394de7f51b9d77ca07b706cf8c3cd
parent45952786d4d9f5aa4c2ce0aaa161b90b6f52c706
re PR c++/66572 (Bogus Wlogical-op warning for operands coming from template instantiations)

PR c++/66572
* pt.c (tsubst_copy_and_build): Add warn_logical_op sentinel.

* g++.dg/warn/Wlogical-op-2.C: New test.

From-SVN: r226120
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wlogical-op-2.C [new file with mode: 0644]