https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500
--- Comment #5 from Andrew Pinski ---
(In reply to Jonathan Wakely from comment #4)
> Well Martin suggested it should include the array length, but I'm content
> with not saying "chars".
What is interesting is the C++ front-end with that change
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500
--- Comment #4 from Jonathan Wakely ---
Well Martin suggested it should include the array length, but I'm content with
not saying "chars".
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500
--- Comment #3 from Andrew Pinski ---
We get in GCC 10+ (r10-464-ga9c697b88395a, same revision which fixed PR 84501):
:4:18: warning: initializer-string for array of 'int' is too long
4 | wchar_t w[3] = L"abcd";
| ^~
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500
--- Comment #1 from Jonathan Wakely ---
Saying "chars" implies narrow characters. The standard uses "character array"
for the general case.