https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100485
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- That does sound frustrating, sorry. The #pragma has a limitation that can make it difficult to use in inlining contexts. I submitted a patch for it for GCC 11 but it got pushed to GCC 12 (see pr98465 comment 32). Until it's fixed, the only other solution I can think of is to prevent the member operator delete from inlining using attribute noinline.
