------- Comment #5 from oliverst at online dot de 2005-12-01 12:32 ------- (In reply to comment #1) > This is invalid code: > t.cc: In function int test_18(): > t.cc:15: error: jump to case label > t.cc:9: error: crosses initialization of int ret > t.cc:18: error: jump to case label > t.cc:9: error: crosses initialization of int ret > > We should reject this. >
Will you create a bug report for this or is there already one filed? I just tried it with GCC 4.0.2 (downloaded it from http://www.thisiscool.com/gcc_mingw.htm) and the code is still accepted. C:\MinGW_4.0.2\bin>gcc -v Using built-in specs. Target: i686-pc-mingw32 Configured with: /datal/gcc/gcc/configure --prefix=/datal/gcc/build/wingcc --bui ld=i686-pc-linux-gnu --host=i686-pc-mingw32 --target=i686-pc-mingw32 --enable-la nguages=c,c++,java --with-gcc --with-gnu-as --with-gnu-ld --with-as=/datal/gcc/b uild/crossgcc/bin/i686-pc-mingw32-as --with-ld=/datal/gcc/build/crossgcc/bin/i68 6-pc-mingw32-ld --enable-threads=win32 --disable-nls --disable-win32-registry -- disable-shared --disable-debug --without-newlib --enable-libgcj --disable-java-a wt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interprete r --enable-hash-synchronization --enable-sjlj-exceptions --enable-libgcj-multifi le --enable-libgcj-mingw-osapi=ansi Thread model: win32 gcc version 4.0.2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25181