https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54924
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- Created attachment 43350 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43350&action=edit Patch to use __builtin_object_size in std::string So it isn't lost, here's a prototype I was working on last year (which only helps if you use -Wsystem-headers).