https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124632
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The unsharing and later freeing is done on the main()::<lambda(this auto:6, int)>::operator()<main()::<lambda(this auto:6, int)> > (cl5, <<< Unknown tree: empty_class_expr >>>, 5); call which is the last call to lambda in main, while the remembering of it is done while dealing with the recursive call main()::<lambda(this auto:6, int)>::operator()<main()::<lambda(this auto:6, int)> > (self, <<< Unknown tree: empty_class_expr >>>, VIEW_CONVERT_EXPR<int>(n) - 1); Perhaps we need to unshare the constructor somewhere.
