Re: [CIL users] block scope variable problem?

2009-11-09 Thread Ben Liblit
> int i = i; According to section 6.2.1 paragraph 7 of the C99 specification, a local variable declaration "has scope that begins just after the completion of its declarator." According to section 6.7 paragraph 1 of the same specification, The declarator includes just the "int i" part of the a

[CIL users] block scope variable problem?

2009-11-09 Thread Dany Vereertbrugghen
Hi all, I'm not sure if this behavior is undefined, or if it is a bug in CIL, but CIL seems to behave different from gcc. For following function (which might be the result of a macro substitution), i seems to be 5 for gcc in the inner block, while running it through CIL would not compile (ge