[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: [cfe-dev] Statement scoping issue
From: clattner () apple ! com (Chris Lattner)
Date: 2007-08-26 23:08:43
Message-ID: C13950C7-066E-40D2-82C2-E6F6231EAB2D () apple ! com
[Download RAW message or body]
On Aug 26, 2007, at 4:03 PM, Neil Booth wrote:
> 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;
>> }
>
> Fixed below.
Very nice Neil, thanks!
-Chris
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic