I am using XCode 4.0.2 for a iOS4 project.

I have a standard "Switch" statement 

```
switch (i) {
    case 0:
        int a = 0;
    break
    ...
}

```

This give me an error "Expected expression" on int a = 0;.

It is very strange that "Switch" is working fine if I precede type declaration with a simple statement like this

```
switch (i) {
    case 0:
        b = 0;
        int a = 0;
    break
    ...
}  

```

in this case the compiler gives no error (only a "unused variable a" warning).

How can that be?

Thank you.