https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119493
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |12.5 Known to work| |7.1.0, 9.5.0 Known to fail| |10.1.0, 5.1.0, 6.1.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The difference is increased recusive inlining. what needs to be done is handle this as tail_recursion rather than a tail call.