http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47896
Summary: wrong code with -O -fno-early-inlining -fipa-pta -fno-tree-dominator-opts -fno-tree-forwprop Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 23470 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23470 auto-reduced testcase Output: $ g++ -O -fno-early-inlining -fipa-pta -fno-tree-dominator-opts -fno-tree-forwprop testcase.C $ ./a.out Aborted Testcase was reduced from g++.dg/torture/pr37922.C, which fails with: $ g++ -O -fno-early-inlining -fipa-pta -fschedule-insns2 -fno-tree-dominator-opts -fno-tree-forwprop -funroll-loops pr37922.ii $ ./a.out Aborted Tested revisions: r170489 - fail