[Bug c++/96954] gcc times out with -O2/-O3/-Os
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 7 13:15:58 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96954
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC does not time out nor crash, it is the buggy testcase with infinite
recursion that does. With -O2 when it is tail call optimized there is an
infinite loop (so hangs), while with -O0 it is not optimized and therefore it
segfaults when it runs out of stack.
More information about the Gcc-bugs
mailing list