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

--- Comment #4 from Tor Andersson <tor at ccxvii dot net> ---
I can make it succeed with -O1 if I add the -fipa-pure-const flag, if that can
help tracking down.

$ gcc -O1 xxx.c && ./a.out 
FAIL: should NOT get here :(

$ gcc -O1 -fno-ipa-pure-const xxx.c && ./a.out 
SUCCESS: exit with exception as expected!

Reply via email to