https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117364
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > This does not seem morally different from NVRO. Yes, that's perfectly fine. > At present, I do not have a handle on where the actual issue is - since > Rainer's and Eric's reports are from completely different phases in the > lowering. Either we should stop Early SRA from doing the transformation (and I agree that this could also happen out of the regular NRVO) or we should enhance the RTL expander to deal with this (questionable IMO) construct.