]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/87519 - bogus warning with -Wsign-conversion.
authorMarek Polacek <polacek@redhat.com>
Thu, 15 Aug 2019 18:32:33 +0000 (18:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 15 Aug 2019 18:32:33 +0000 (18:32 +0000)
commit9be0b095c9e1864a476d41faf84ad1d314f0ac47
treec7f2b56da8fdf770d0d91e839aeaac3a549aed6a
parent857f2fe622228bbf85ba56ac1853c01eb0eb6136
PR c++/87519 - bogus warning with -Wsign-conversion.

* typeck.c (cp_build_binary_op): Use same_type_p instead of comparing
the types directly.

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

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