[cfe-dev] initializer bug

Steve Naroff snaroff at apple.com
Mon Dec 10 18:46:17 PST 2007


On Dec 10, 2007, at 6:26 PM, Keith Bauer wrote:

> On Dec 1, 2007 6:40 PM, Chris Lattner <clattner at apple.com> wrote:
>> Hi Steve,
>>
>> Can you please investigate this code when you get a chance?
>>
>> typedef struct { double x,y,z; } VECTOR;
>> VECTOR Skycolor[2] = { { 0.5, 0.3, 0.7 }, { 0.0, 0.0, 0.2 } };
>> [snip]
>
>
>
> Don't know when this was fixed, but thanks to whoever fixed it :)
>
> Here's where I'm at now... one bogus syntax error from a system header
> (or is GCC at fault that it doesn't emit an error?)
>

I just fixed this...the error should have been a warning...

Thanks!

snaroff




More information about the cfe-dev mailing list