[PATCH] Handle string constant initializesr for array of char16_t or char32_t
Joseph S. Myers
joseph@codesourcery.com
Mon Apr 21 14:24:00 GMT 2008
On Mon, 21 Apr 2008, Kris Van Hees wrote:
> 2008-04-20 Kris Van Hees <kris.van.hees@oracle.com>
>
> * c-typeck.c (digest_init): Support char16_t and char32_t.
In addition to changing digest_init, I expect you need to change
set_nonincremental_init_from_string to handle the new string types. See
gcc.dg/c99-init-1.c for examples of the sort of test you need to add for
this (C99 designated initializers overriding parts of the initialization
for an array originally initialized with a string constant).
> + else if (!comptypes(typ1, typ2))
Space between "comptypes" and "(" needed.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list