[cfe-dev] c99 Designated Initializers work in clang++

Chandler Carruth chandlerc at google.com
Sat Jan 15 16:11:19 PST 2011


On Sat, Jan 15, 2011 at 2:40 PM, İsmail Dönmez <ismail at namtrac.org> wrote:

> Hi;
>
> On Sun, Jan 16, 2011 at 12:37 AM, Andrey Valyaev <dron at osrc.info> wrote:
>
>> struct foo {
>>        int a;
>>        int b;
>> };
>>
>> const foo f = { .a = 10, .b = 11 };
>>
>
> clang trunk issues an error;
>
> [~]> clang test.c
>

Note that the original question was about 'clang++' not 'clang', which is
why omitting the 'struct' tag would be allowed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110115/3557d732/attachment.html>


More information about the cfe-dev mailing list