Command line:
g++ -ftree-ter temps5.C && ./a.out
Tested revisions:
r157965 - fail
r153685 - fail
4.4 r157895 - OK
4.4.3, 4.3.4, 4.2.4, 4.1.2 - OK
Compiler output:
$ /mnt/svn/gcc-trunk/binary-157965-lto/bin/g++ -ftree-ter temps5.C && ./a.out
FAIL
--
Summary: [4.5 Regression] -ftree-ter causes FAIL: g++.old-
deja/g++.law/temps5.C execution test
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43655