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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
C11 still has it:

6.7.9/14:
An array of character type may be initialized by a character string literal
orUTF−8 string literal, optionally enclosed in braces.




C23 still does too:

6.7.11/15:

Anarray of character type may be initialized by a character string literal or
UTF-8 string literal, optionally enclosed in braces. 


The wording here has not changed from C90 either.

So yes GCC is correct in the pedantic warning here.

Reply via email to