[Bug c++/67259] list-initialization of a reference fails to initialize char array from string literal
miguel.ojeda.sandonis at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 25 12:30:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67259
Miguel Ojeda <miguel.ojeda.sandonis at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |miguel.ojeda.sandonis@gmail
| |.com
--- Comment #2 from Miguel Ojeda <miguel.ojeda.sandonis at gmail dot com> ---
I stumbled on this when doing something like:
struct T { char a[2]; };
T f() { return { "f" }; }
It is also rejected on 7.3, 8.1 and trunk.
More information about the Gcc-bugs
mailing list