https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124398
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You mean inside of fn (resp. foo)? Returning reflection of a local variable is I think just fine, one can use type_of on it, parent_of, etc. Just splicing it back is not ok.
