[cfe-dev] c99 Designated Initializers work in clang++
Douglas Gregor
dgregor at apple.com
Sun Jan 16 08:16:50 PST 2011
On Jan 15, 2011, at 4:34 PM, Chris Lattner wrote:
>
> On Jan 15, 2011, at 2:37 PM, Andrey Valyaev wrote:
>
>> struct foo {
>> int a;
>> int b;
>> };
>>
>> const foo f = { .a = 10, .b = 11 };
>>
>> Should not be work.
>> It cause error in gcc.
>> But compiled without warnings in clang++ 2.8
>
> There is a bug here, we don't emit an extwarn when -pedantic is specified.
Fixed in Clang r123582.
Andrey, thanks for reporting this problem!
- Doug
More information about the cfe-dev
mailing list