[cfe-commits] r46917 - in /cfe/trunk: AST/Expr.cpp test/Sema/deref.c

Steve Naroff snaroff at apple.com
Sat Feb 9 17:05:21 PST 2008


On Feb 9, 2008, at 4:58 PM, Eli Friedman wrote:

> On Feb 9, 2008 4:30 PM, Steve Naroff <snaroff at apple.com> wrote:
>> Neil, can you point me to the place in the C99 spec that says this  
>> is allowed? I thought Expr::isLvalue() conformed to the spec, which  
>> says "C99 6.3.2.1: an lvalue is an expression with an object type  
>> or an incomplete type other than void.". Please advise.
>
> "const void" is an incomplete type other than void.  (Lovely spec,  
> isn't it.)
>

Pretty subtle/bizarre...especially since the "const" is meaningless in  
this context! (which EDG is nice enough to warn about).

Thanks...I'll fix up Expr::isLvalue().

snaroff


> -Eli




More information about the cfe-commits mailing list