[cfe-dev] Statement scoping issue

Chris Lattner clattner at apple.com
Sun Aug 26 14:10:26 PDT 2007


On Aug 23, 2007, at 1:34 PM, Neil Booth wrote:

> C99 scoping seems to work apart from this, whose return b is invalid
> as there is no "b" in scope:
>
> int f (int z)
> {
>    if (z > sizeof (enum {a, b}))
>       return a;
>    return b;
> }

Hi Neil,

I checked in the infrastructure for handling this (separating the  
concept of a variable scope from the concept of a break/continue  
scope), but haven't made the behavior change requested yet.  Can you  
please take a look at it?

Thanks,

-Chris



More information about the cfe-dev mailing list