https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70932
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work|10.1.0, 11.1.0, 12.0 | Keywords|needs-bisection, | |rejects-valid | --- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #12) > Looks like this was fixed in GCC 10+. Actually no, what changed in GCC 10, is that synthesized deconstructor is not created until actually used; that is it is lazy.