http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50960
Bug #: 50960 Summary: [OOP] vtables not marked as constant Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org CC: ja...@gcc.gnu.org < richi> and it seems the vtables are not initialized in a way the optimizers could use them < richi> they are not constant < richi> your testcase should be trivially de-virtualizable by early FRE For the test case, see PR 50959 comment 0