https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87323
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Component|c |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >which should be equivalent Not exactly because the struct becomes a non-POD for ABI reasons. There is a missed optimization where it does not change to (a+b) * c.