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

2020-06-08 Thread bzsurr at protonmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: bzsurr at protonmail dot com Target Milestone: --- Looking at the following code gcc calls the _char*_ overload, according to the standard the string literal is of type const array of char

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

2020-06-09 Thread bzsurr at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596 --- Comment #1 from bzsurr at protonmail dot com --- (In reply to bzsurr from comment #0) > Looking at the following code gcc calls the _char*_ overload, according to > the standard the string literal is of type const array of char, so t