[cfe-commits] r63519 - in /cfe/trunk: lib/Sema/SemaDecl.cpp test/Sema/static-init.c
Nuno Lopes
nunoplopes at sapo.pt
Mon Feb 2 15:31:40 PST 2009
>>>> - if (!Base)
>>>> - return CheckAddressConstantExpression(SubExpr);
>>>> + return Base ? false : CheckAddressConstantExpression(SubExpr);
>>>> }
>>>
>>> If you're going to add an ugly hack, please add a FIXME as well.
>>
>> pardon my ignorance, but why is that such a horrible hack? As far as I
>> can
>> tell it makes sense..
>
> Because it allows stuff like the following?
>
> int* f();
> int a = (unsigned)f();
>
> -Eli
I see. I'll try to fix it, thanks!
Nuno
More information about the cfe-commits
mailing list