https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71590
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |msebor at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- It is true that there is no std::string::operator=(int) but the assignment in 'x = a' resolves to std::string::operator(char). The program is valid.