https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79679
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2017-02-22 Known to work| |6.3.0 Summary|[C++17] Missing destruction |[7 Regression] [C++17] |of temporary within |Missing destruction of |constructor's |temporary within |mem-initializer-list |constructor's | |mem-initializer-list Ever confirmed|0 |1 Known to fail| |7.0.1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- int count; struct S { S() { ++count; } S(const S&) { ++count; } ~S() { --count; } }; struct T { T(S) {} }; int main() { { S s; T u(s); } if (count) __builtin_abort(); }