[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-23 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #37 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:6d00f052ef209bacdd93f503b0c5fb428cc6c434 commit r10-6181-g6d00f052ef209bacdd93f503b0c5fb428cc6c434 Author: Jason Merrill Date: T

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-22 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #36 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:55b7df8bfb12938e7716445d4e2dc0d2ddf44bac commit r10-6157-g55b7df8bfb12938e7716445d4e2dc0d2ddf44bac Author: Jason Merrill Date: W

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-22 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 seurer at gcc dot gnu.org changed: What|Removed |Added CC||seurer at gcc dot gnu.org ---

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-22 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Christophe Lyon changed: What|Removed |Added CC||clyon at gcc dot gnu.org --- Comment #

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-21 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-21 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #32 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:c77074d05691053ee7347d9e44ab89b3adb23fb1 commit r10-6126-gc77074d05691053ee7347d9e44ab89b3adb23fb1 Author: Jason Merrill Date: T

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Jason Merrill changed: What|Removed |Added CC||kosotiro at yahoo dot gr --- Comment #31

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-10 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #30 from Jason Merrill --- New patch: https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00624.html

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2020-01-07 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Eric Gallager changed: What|Removed |Added CC||msebor at gcc dot gnu.org,

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2015-10-07 Thread marcin.slusarz at intel dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Marcin Ślusarz changed: What|Removed |Added CC||marcin.slusarz at intel dot com --- Com

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2014-09-16 Thread hariharan.gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 hariharan.gcc at gmail dot com changed: What|Removed |Added CC||hariharan.gcc at gmail do

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2014-05-01 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Manuel López-Ibáñez changed: What|Removed |Added CC||dchichkov at gmail dot com --- Comm

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2014-02-09 Thread chengniansun at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #25 from Chengnian Sun --- Today I encountered a similar case as follows. The conversion warning by gcc is not true as right-shifting an unsigned short decreases the value. BTW clang does not emit warnings for this code snippet. $

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2012-06-20 Thread dichlofos-mv at yandex dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Mikhail Veltishchev changed: What|Removed |Added CC||dichlofos-mv at yandex dot

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2012-05-05 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #23 from Manuel López-Ibáñez 2012-05-05 15:30:06 UTC --- (In reply to comment #22) > If someone really thinks there should be a warning for this behavior, how > about > adding a separate > -Wchar-arithmetic > warning which warns on a

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2012-05-05 Thread wessjunk at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Wes changed: What|Removed |Added CC||wessjunk at gmail dot com --- Comment #22 from Wes

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2012-03-24 Thread DeusExSophismata at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 --- Comment #21 from David Stone 2012-03-24 21:25:08 UTC --- Why was this patch rejected, and is there a way to improve it so that obviously safe cases (such as PR52703) are not warned about without having to specify a '-Wno-' option? Yes, accor

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2012-03-24 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Manuel López-Ibáñez changed: What|Removed |Added CC||DeusExSophismata at gmail

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2011-09-25 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Manuel López-Ibáñez changed: What|Removed |Added CC||ebrahim at mohammadi dot ir --- Com

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2010-06-12 Thread photon at seznam dot cz
--- Comment #18 from photon at seznam dot cz 2010-06-12 16:46 --- (In reply to comment #17) > The patch was rejected but it may be accepted by using a new -Wno-* option to > disable these warnings. Perhaps -Wno-conversion-after-promotion? > > Suggestions are welcome. > -Wconversion s

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2010-06-11 Thread manu at gcc dot gnu dot org
--- Comment #17 from manu at gcc dot gnu dot org 2010-06-11 20:22 --- The patch was rejected but it may be accepted by using a new -Wno-* option to disable these warnings. Perhaps -Wno-conversion-after-promotion? Suggestions are welcome. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2009-09-05 Thread manu at gcc dot gnu dot org
--- Comment #16 from manu at gcc dot gnu dot org 2009-09-05 14:05 --- *** Bug 41274 has been marked as a duplicate of this bug. *** -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2009-07-23 Thread manu at gcc dot gnu dot org
--- Comment #15 from manu at gcc dot gnu dot org 2009-07-23 15:35 --- Patch: http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01179.html -- manu at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2009-07-16 Thread photon at seznam dot cz
-- photon at seznam dot cz changed: What|Removed |Added Severity|enhancement |normal Summary|-Wconversion: do not warn |-Wconversion generate

[Bug c++/40752] -Wconversion generates false warnings

2009-07-14 Thread ian at airs dot com
--- Comment #4 from ian at airs dot com 2009-07-14 22:23 --- Manu, I agree that these warnings are in some sense technically correct but they are not useful. They can't point to any actual bug. I guess would be that if every input to the expression has the size of the target of the exp

[Bug c++/40752] -Wconversion generates false warnings

2009-07-14 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2009-07-14 20:56 --- Joseph, could you comment on this? -- manu at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/40752] -Wconversion generates false warnings

2009-07-14 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2009-07-14 20:55 --- Andrew, what you say is true, but in this case the warning is not very useful. I'd prefer to warn only when the operator is larger than the target of the assignment. I would like to hear other opinions. -- manu at g

[Bug c++/40752] -Wconversion generates false warnings

2009-07-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-07-14 19:21 --- Theses are not false warnings: c >>= 1; is really c = (int)c >> 1; c += (char) 1; c = (int)c + (int)(char)1; c += c2; c = (int)c + (int) c2; c = ~c2; c = ~(int)c2; Only the l