https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81250
--- Comment #3 from Jon Grant <jg at jguk dot org> --- Thank you for your replies. I can see why it is the way it is. For the moment we can remove unused std::string via code reviews. Maybe it is something better suited to a static analysis tool. Jon