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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Program seems fine with gcc-11-20210404, but goes wrong with gcc-12-20220403.

$ ~/gcc/results.20210404/bin/gcc -w -O1 -fipa-cp bug903.c
$ ./a.out
checksum = FC4F321
$ ~/gcc/results.20220403/bin/gcc -w -O1 -fipa-cp bug903.c
$ ./a.out
Segmentation fault (core dumped)
$ 

Git hashes are g:c3d3bb0f03dbd025 and
g:0364465e3708249ece810ca5d65164552595538c

Reply via email to