https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Your original testcase shows one example where you want a warning, but that's not a specification. Should it only warn when std::string and bool are involved, and there's a char* argument? Or should it be more general? How general? What should the semantics be?