https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115581
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|other |middle-end Keywords| |missed-optimization Summary|missed argument forwarding |could remove copy of struct |in lambda |if original otherwise not | |used Ever confirmed|0 |1 Last reconfirmed| |2024-06-21 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: ``` struct thing { int x[64]; }; void g(const thing &); static inline void f1(thing x) { g(x); } void f9(thing x) { f1(x); } ``` Confirmed.