https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95245
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2020-05-20 Ever confirmed|0 |1 Keywords| |missed-optimization --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think other implementations automatically wrap the function in a reference-like type. See PR 51965 for similar issues with other recursively-defined algorithms. N.B. GCC 7 is no longer supported or maintained, so bug reports should be for currently-supported versions.