Full name of submitter (unless configured in github; will be published with the issue): Jay Ghiron
Reference (section label): [dcl.init]/16.3
Issue description:
If the destination type is an array of characters, an array of char8_t, an array of char16_t, an array of char32_t, or an array of wchar_t, and the initializer is a string-literal, see [dcl.init.string].
"an array of characters" does not clearly allow code such as the following, for example if it is interpreted as "an array of char":
signed char x[1]="";
unsigned char y[1]="";
Existing implementations allow this, and the wording in [dcl.init.string] intends on allowing it too.
Suggested resolution:
Modify [dcl.init]/16.3:
If the destination type is an array of ordinary characters type, an array of char8_t, an array of char16_t, an array of char32_t, or an array of wchar_t, and the initializer is a string-literal, see [dcl.init.string].
Full name of submitter (unless configured in github; will be published with the issue): Jay Ghiron
Reference (section label): [dcl.init]/16.3
Issue description:
"an array of characters" does not clearly allow code such as the following, for example if it is interpreted as "an array of char":
Existing implementations allow this, and the wording in [dcl.init.string] intends on allowing it too.
Suggested resolution:
Modify [dcl.init]/16.3: