This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/67485] expmed.c sanitizer detects overflow


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67485

--- Comment #1 from Vittorio Zecca <zeccav at gmail dot com> ---
Still in 6.1.0 at line 3162 of expmed.c

"val_so_far -= (HOST_WIDE_INT) 1 << log;"

../../gcc-6.1.0/gcc/expmed.c:3162:42: runtime error: signed integer overflow:
-9223372036854775808 - 1 cannot be represented in type 'long int'

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]