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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119
Martin Sebor changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
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.
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.
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.
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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52119
Jason Merrill changed:
What|Removed |Added
Status|RESOLVED|NEW
Resolution|INVALID