https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114134
--- Comment #3 from Pilar Latiesa <pilarlatiesa at gmail dot com> --- (In reply to Richard Biener from comment #2) > I guess the testcase can be simplified to just show the return value > handling issue. I think this suffices: struct TVec3D { double x, y, z; }; struct TKey { int i, j, k; }; TKey Key(TVec3D const &r) { return {int(r.x), int(r.y), int(r.z)}; }