[Bug c/84500] diagnostic says "array of chars" for arrays of wchar_t, char16_t and char32_t

2021-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

[Bug c/84500] diagnostic says "array of chars" for arrays of wchar_t, char16_t and char32_t

2021-09-24 Thread redi at gcc dot gnu.org via Gcc-bugs
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".

[Bug c/84500] diagnostic says "array of chars" for arrays of wchar_t, char16_t and char32_t

2021-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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"; |

[Bug c/84500] diagnostic says "array of chars" for arrays of wchar_t, char16_t and char32_t

2018-02-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/84500] diagnostic says "array of chars" for arrays of wchar_t, char16_t and char32_t

2018-02-21 Thread redi at gcc dot gnu.org
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.