It looks like the code that is generated is actually correct, so it's
only a bogus warning. I suggest we forward it upstream.
I will create a separate gcc PR for the related problem discussed with
Andrew in private mail: gcc doesn't reject jumps into a VLA's scope.
--
Falk
Andrew Suffield <[EMAIL PROTECTED]> writes:
> Package: gcc-3.3
>
> [This is also present in gcc-3.2, and probably all 3.x versions; it is
> inapplicable for 2.95, which didn't support dynamic arrays]
Huh? It did.
> int main(void)
> {
> int foo = 0;
> int bar;
> int len = 5;
> switch(foo
Package: gcc-3.3
[This is also present in gcc-3.2, and probably all 3.x versions; it is
inapplicable for 2.95, which didn't support dynamic arrays]
int main(void)
{
int foo = 0;
int bar;
int len = 5;
switch(foo)
{
case 0:
bar = 1;
char buf[len];
}
}
[EMAIL PROTECT
3 matches
Mail list logo