GCC mainline is now ICEing on the following snipped (reduced from real-world code)
struct A { virtual ~A() { } }; void f() { struct B : A { }; B b; } Use g++ -g. My preliminary analysis indicates that the ICE occurs while building the vtable for the local class f::B. I believe this to be related to Dan's recent rework. -- Gaby -- Summary: polymorphic local class => ICE in in lookup_decl_die, at dwarf2out.c:5461 Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gdr at gcc dot gnu dot org CC: dberlin at gcc dot gnu dot org,gcc-bugs at gcc dot gnu dot org GCC build triplet: native GCC host triplet: i686-pc-linux-gnu GCC target triplet: native http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22583