On Fri, Dec 23, 2022 at 1:55 PM Jerry James <loganje...@gmail.com> wrote:
> I was able to reduce your test code, Camm, and have filed
> https://bugzilla.redhat.com/show_bug.cgi?id=2156088.  I am now going
> to vanish for the rest of the year, but will have sporadic email
> access.

I haven't quite vanished yet, and I already got a reply on that bug.
The code invokes undefined behavior.  Add -fsanitize=undefined to the
build flags and you will see:

$ ./t -8874444426961747968
t.c:50:16: runtime error: signed integer overflow: 8874444426961747968
+ 2305843009213693952 cannot be represented in type 'long int'
make
0x404140

-- 
Jerry James
http://www.jamezone.org/

Reply via email to