The following valid code snippet is rejected on trunk when compiled with "-O" (on x86_64-unknown-linux-gnu):
================================== struct A { virtual void foo(); virtual ~A(); int i; }; struct B : virtual A {}; struct C : B { virtual void foo(); }; void bar() { C().foo(); } ================================== bug.cc:11:1: error: '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev' The regression was introduced after 2009-09-01. -- Summary: [4.5 Regression] Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev' Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: rejects-valid, monitored Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41257