https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105465
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- No it's not a regression, and it's not broken, it's correct. https://wg21.link/P0136R1 changed the rules for C++17, resolving CWG1573, CWG1645, CWG1715, CWG1736, CWG1903, CWG1941, CWG1959, and CWG1991 in the process. The old rule was inferior, nobody *wants* two copies of Foo there, that just makes the program slower for no reason.