https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84500

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-02-21
                 CC|                            |msebor at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed.  I think the warning would be the most informative and the least
vague if it instead used the name of the array type, and also mentioned the
size of the initializer in case it's hidden behind a macro:

  warning: initializer-string for an object of 'wchar_t[3]' has 5 elements

as long as there is a way to get at the name of the typedef.  Otherwise,
printing the underlying type would be an alternative.

Reply via email to