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

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Sat Mar 9 16:52:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56579

--- Comment #4 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2013-03-09 16:51:52 UTC ---
(In reply to comment #3)
> (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?)

Yes, RESOLVED->INVALID.



More information about the Gcc-bugs mailing list