https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95950
Danila Kutenin <kutdanila at yandex dot ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Danila Kutenin <kutdanila at yandex dot ru> --- I reread the standard, call to destructor for class types ends the lifetime, so this behaviour is valid