Hi, my first bug report here. The code crashes gcc 4.1.1 but 3.4.4 does what it's supposed to and gives nice error message. Anyways, here's the file gcc suggested me to send, i hope it helps :)
// /usr/libexec/gcc/i386-pc-linux-gnu/4.1.1/cc1plus -quiet -D_GNU_SOURCE crash.cpp -quiet -dumpbase crash.cpp -auxbase crash -o - -frandom-seed=0 # 1 "crash.cpp" # 1 "<built-in>" # 1 "<command line>" # 1 "crash.cpp" namespace Test { class Test; } Test::~Test() { } The error gcc gives: crash.cpp:2: internal compiler error: Segmentation fault ... -- Summary: "ICE: segmentation fault" on bad destructor definition Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jaak dot ra at gmail dot com GCC build triplet: 4.1.1 GCC host triplet: 4.1.1 GCC target triplet: 4.1.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28383