Bug#218803: gcc: (possible) bogus expansion of dynamic arrays within switch statements

2003-11-05 Thread Falk Hueffner
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

Bug#218803: gcc: (possible) bogus expansion of dynamic arrays within switch statements

2003-11-02 Thread Falk Hueffner
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

Bug#218803: gcc: (possible) bogus expansion of dynamic arrays within switch statements

2003-11-02 Thread Andrew Suffield
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