[Patch] Better diagnostics for string initialization (and fix for C11)

Hans Wennborg hans at chromium.org
Tue May 14 09:48:53 PDT 2013


On Tue, May 14, 2013 at 4:12 PM, David Blaikie <dblaikie at gmail.com> wrote:
> On May 13, 2013 9:59 AM, "Hans Wennborg" <hans at chromium.org> wrote:
>>   /tmp/a.c:3:9: error: initializing wide char array with non-wide string
>> literal
>>   wchar_t s[] = "Hi";
>
> Worth it/possible/convenient to go one step further and provide a fixit to
> insert the 'L' and appropriately recover? I suppose that's probably
> orthogonal to your patch, though.

I can look into it, but as you say, probably orthogonal to this patch.

Thanks,
Hans



More information about the cfe-commits mailing list