[Bug other/56579] 4.8.0-20130303 g++ optimisation flags cause segfault or different program output

dacrick at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Mar 9 16:49:00 GMT 2013


--- Comment #3 from dacrick at gmail dot com 2013-03-09 16:48:40 UTC ---
(In reply to comment #2)
> That most likely means that the programm is invoking undefined
> behaviour and thus invalid.
> A quick check with "clang++ -fsanitize=undefined" confirms this:
> ...
>  paq8kx_v7.cpp:1795:13: fatal error: signed integer overflow: 707863021 * 8
> cannot be represented in type 'int'

Thanks for your further investigation.

Clearly an error in the program code then.

Shall I change status of bug to RESOLVED? (assuming that's
how I close the bug?)

More information about the Gcc-bugs mailing list