https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519
--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Thu Aug 15 18:32:33 2019 New Revision: 274545 URL: https://gcc.gnu.org/viewcvs?rev=274545&root=gcc&view=rev Log: 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. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/warn/Wsign-conversion-5.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/typeck.c