test.cc:12: internal compiler error: in force_decl_die, at dwarf2out.c:12488
I get an ICE when compiling the following file with the -g flag. If -g is not passed, it compiles fine. This is with the latest gcc-4.0 package in the debian-amd64 gcc-3.4 archive, which reports as "gcc (GCC) 4.0.0 20050304 (prerelease) (Debian 4.0-0pre7)" class Foo { public: int x; virtual ~Foo() { } virtual Foo* blah() { return this; } }; class FooBar : public Foo { public: using Foo::blah; using Foo::x; }; int main() { return 0; } -- Summary: ICE when compiling with debug info and embedded using Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: critical Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: lenz at cs dot wisc dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20513