https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109889
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #9) > Should have said "only with -std=c++17" (and later, of course). Actually, that's wrong, *only* with C++17, not earlier *or* later. So the further changes to elision rules after C++17 changed the behaviour again.