https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|11.0 | Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #33 from Martin Sebor <msebor at gcc dot gnu.org> --- With the workaround in r11-7146 the warning should no longer be issued for std::string::insert. Thanks to r12-2087 suppression by #pragma GCC diagnostic works reliably even with inlining in GCC 12, so the warning can also be suppressed using it. I'm not working on any other improvements related to the underlying problem but I think this report can be resolved as fixed in GCC 11 and 12.