[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2019-05-03 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 --- Comment #17 from Jonathan Wakely --- Author: redi Date: Fri May 3 19:13:31 2019 New Revision: 270858 URL: https://gcc.gnu.org/viewcvs?rev=270858&root=gcc&view=rev Log: Avoid -Woverflow warning in __numeric_limits_integer This is the same f

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2019-01-29 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 --- Comment #16 from Jonathan Wakely --- Fixed by r225998 PR c++/55095 * c-common.c (c_fully_fold_internal): Warn about left shift overflows. Use EXPR_LOC_OR_LOC. (maybe_warn_shift_overflow): New f

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2019-01-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2013-06-05 Thread jyasskin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 --- Comment #14 from Jeffrey Yasskin --- Whoops, I missed your comment 7 where you already knew the history. Sorry.

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2013-06-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 --- Comment #13 from Jason Merrill --- (In reply to Jeffrey Yasskin from comment #12) > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3675.html#1457 > changed this between C++11 and C++14. True, but the defect report applies to C++11.

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2013-06-05 Thread jyasskin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 --- Comment #12 from Jeffrey Yasskin --- http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3675.html#1457 changed this between C++11 and C++14.

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2013-06-05 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 --- Comment #11 from Jason Merrill --- (In reply to ajf from comment #10) > MY apologies if I am missing something obvious, but what exactly makes > shifting a 1 into the sign bit undefined behavior? You're right, it isn't: 5.8/2: ... if E1 has

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2013-06-05 Thread alan.j.flavell at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 ajf changed: What|Removed |Added CC||alan.j.flavell at gmail dot com --- Comment #10 fro

[Bug c++/52119] [C++11] overflow in signed left shift isn't diagnosed

2012-02-13 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119 Jason Merrill changed: What|Removed |Added Status|RESOLVED|NEW Resolution|INVALID