The following intentionally bad code causes c++ to segfault: [mrsam@gwl oak]$ cat t.C class X { public: X(); virtual ~X(); } X::x() { } X::~x() { } [mrsam@gwl oak]$ c++ -Wall -c t.C t.C:10: ISO C++ forbids defining types within return type t.C:10: no `X X::x ()' member function declared in class `X' t.C:10: semicolon missing after declaration of `class X' t.C: In method `int X::x (X *)': t.C:11: warning: no return statement in function returning non-void t.C: At top level: t.C:14: destructor `x' must match class name `X' t.C: In method `X::~X ()': t.C:15: Internal error: Segmentation fault. Please submit a full bug report. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
Fixed in gcc-c++-2.96-63 in rawhide.