[Bug c++/123303] Recursive function causes infinite loop in compilation

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 26 18:32:05 GMT 2025


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
>The function has two return statements each of which has a different type, 
Except the C++ front-end can't figure that out without full instantiation of
the functions as the return type is auto.

-ftemplate-depth= should be hit but it is so high that it takes a long time to
hit in this case; I think.


More information about the Gcc-bugs mailing list