https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106977
--- Comment #18 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #17) > (In reply to Andrew Pinski from comment #15) > > (In reply to Iain Sandoe from comment #14) > > > So it would seem that we might want to find a reproducer that we can look > > > at > > > the various tree dumps and see if/where an sret is introduced? > > > > > > (if that's not the cause, then we'll have to find a new hypothesis) > > > > POD vs non-POD (I think TYPE_ADDRESSABLE causes the difference but I am not > > 100% sure ...) > > I think the visibility type is POD (assuming D has that concept) Something is TREE_ADDRESSABLE on the D Visibility type ... This is the mismatch that is happening.