[Bug c++/95596] string literal wrong overload resolution (char* vs std::string)

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jul 22 14:05:04 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Another one that G++ rejects:

  void f(char*);
  int &f(...);
  int &r = f("foo");


More information about the Gcc-bugs mailing list