https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115201
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 58274 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58274&action=edit Slightly more reduced Slightly more reduced, foo3 should produce the same as foo4. Basically Tailr does not handle recusive calls with struct arguments really.