[cfe-dev] InitListExpr with void type
Ted Kremenek
kremenek at apple.com
Tue Jan 27 15:24:03 PST 2009
On Jan 27, 2009, at 3:14 PM, Douglas Gregor wrote:
>>
>> Incidentally, clang generates a warning for the above (and the
>> original) code:
>>
>> $ clang t.c
>> t.c:5:5: warning: excess elements in array initializer
>> { { 1.0f, 2.0f, 3.0f, 4.0f,
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1 diagnostic generated.
>
> That warning is bogus, and it shows that we're handling this
> initializer list improperly.
>
> I'm tackling the initializer-list stuff as part of CodeGen for
> designated initializers, and this example is (now) working in my
> local tree. If you've filed a bug, feel free to kick it over to me
> to get the InitListExpr types straightened out as part of this work.
>
> - Doug
Thanks Doug. I haven't filed a bug yet. I would be more than happy
to if that helps anyone.
More information about the cfe-dev
mailing list