https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86498
Bug ID: 86498 Summary: g++ allows conversion from string literal to non-const char* in C++11 mode Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zhonghao at pku dot org.cn Target Milestone: --- g++ rejects this valid C++11 code: void f(char*); int &f(...); int &r = f("foo"); There is no conversion from string literal to non-const char* in C++11.