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

İsmail Dönmez ismail at namtrac.org
Sun Jan 16 08:22:31 PST 2011


Hi;

On Sun, Jan 16, 2011 at 2:11 AM, Chandler Carruth <chandlerc at google.com>wrote:

> 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.
>

My bad! Sorry.

ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110116/44539f2b/attachment.html>


More information about the cfe-dev mailing list