https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
Andrew Pinski changed:
What|Removed |Added
CC||arthur.j.odwyer at gmail dot
com
--- Co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
Andrew Pinski changed:
What|Removed |Added
CC||johnsen.david at siemens dot
com
--- Co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
Jonathan Wakely changed:
What|Removed |Added
CC||zhonghao at pku dot org.cn
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
--- Comment #5 from Jonathan Wakely ---
Another one that G++ rejects:
void f(char*);
int &f(...);
int &r = f("foo");
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
--- Comment #3 from Jonathan Wakely ---
gcc/cp/typeck.c does:
if (cxx_dialect >= cxx11)
pedwarn (loc, OPT_Wwrite_strings,
"ISO C++ forbids converting a string constant to %qT",
totype);
else
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95596
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Ever confirmed|0
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 the non
> c