https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102899
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Why do you think this is a compiler bug? If you delete this, you invoke the destructor and then the operator delete, so when you do this in the destructor, it means you do infinite recursion.