Package: g++-3.2 Version: 1:3.2.2-0pre8 Severity: normal On the following code:
#include <string> using namespace std; int main() { switch(2) { case 3: string blah; break; default: 42; } return 0; } GCC gives the following output (just g++ test.cpp, no other options, although it occurs also with -Wall -ansi -O0 -g3): test.cpp: In function `int main()': test.cpp:8: jump to case label test.cpp:6: crosses initialization of `std::string blah' Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. On http://home.o2w.net/~ivo/gcc/ you can find all files, including preprocessed source. The bug does not occur if blah is of another type, e.g. int or pair<int,int>, but it does occur with pair<string,string>. -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux phoenix 2.4.19-xfs-lj-sched #1 SMP ma okt 21 11:50:54 CEST 2002 i686 Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 Versions of packages g++-3.2 depends on: ii gcc-3.2 1:3.2.2-0pre8 The GNU C compiler ii gcc-3.2-base 1:3.2.2-0pre8 The GNU Compiler Collection (base ii libc6 2.3.1-10 GNU C Library: Shared libraries an ii libstdc++5-dev 1:3.2.2-0pre8 The GNU Standard C++ Library v3 (d -- no debconf information