[Bug c++/96570] Warnings desired for time_t to/from int coversions
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 5 06:25:30 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96570
--- Comment #19 from Richard Biener <rguenth at gcc dot gnu.org> ---
More catched cases:
t = sb[0]|(sb[1]|(sb[2]|sb[3]<<8)<<8)<<8; // warn - from
mdadm-4.5+44.gf732de3f mdadm/util.c
t = sb[0]|(sb[1]|(sb[2]|(unsigned)sb[3]<<8)<<8)<<8; // OK until 2106
t = u8<<24; // warn - from boost_1_91_0/libs/iostreams/src/gzip.cpp
t = (unsigned)u8<<24; // OK until 2106
More information about the Gcc-bugs
mailing list