jump to case label ... crosses initialization
Christian.Thalinger at Sun.COM
Tue Sep 1 04:54:56 PDT 2009
Raffaello Giulietti wrote:
> the gcc compiler (I'm using 4.3.3) correctly complains about "jump to
> case label ... crosses initialization" twice.
> In fact, when declaring a var "inside" a case in a switch, braces are
> needed to make a block out of the statements. Otherwise the declaration
> has a wider scope than the case.
Right, thanks for the finding. I will push these changes with my next
More information about the mlvm-dev