PR c++/86190 - bogus -Wsign-conversion warning
authorMarek Polacek <polacek@redhat.com>
Wed, 18 Jul 2018 13:13:11 +0000 (13:13 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 18 Jul 2018 13:13:11 +0000 (13:13 +0000)
commitc56e97274f164e704e7f13dfe53531ced3cb24ca
tree8af96e877c0c68e48efb2eedf1d2ebca4c93f1f9
parenteb5926451a7873a62de7ef02cba9f671bad14b88
PR c++/86190 - bogus -Wsign-conversion warning

PR c++/86190 - bogus -Wsign-conversion warning
* typeck.c (cp_build_binary_op): Fix formatting.  Add a warning
sentinel.

* g++.dg/warn/Wsign-conversion-3.C: New test.
* g++.dg/warn/Wsign-conversion-4.C: New test.

From-SVN: r262855
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsign-conversion-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wsign-conversion-4.C [new file with mode: 0644]