http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46984
Summary: [4.6 Regression] g++.dg/torture/pr45699.C FAILs with -fno-early-inlining -flto Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: jamb...@gcc.gnu.org Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu +++ This bug was initially created as a clone of Bug #46053 +++ The fix for PR46053 doesn't work when -flto is applied: Reduced testcase is the same: http://gcc.gnu.org/bugzilla/attachment.cgi?id=22067 Output: $ g++ -O -fipa-cp -fno-early-inlining -flto pr46053.C $ ./a.out Aborted Tested revisions (for the reduced testcase): r167954 - fail 4.5 r166509 - OK