https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122010
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2025-09-21
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>The x86 backend silently optimizes away the infinite recursive call if flag !=
>0:
I can't reproduce this. I tried -O2, -Os, -O3 and they all produce an infinite
loop for x86_64. I tried with both the C and C++ front-ends too.
What options are you using and can you give the exact compiler version (gcc -v
should be enough)?