Command line: g++ -O1 -fpeel-loops -fcompare-debug -c testcase.cpp it has to be compiled as C++ code, even though it's valid C code
Tested revisions (x86_64): r155680 - crash r155662 - crash (x86) r154886 - crash r154830 - crash r153685 - OK (built without graphite support, if that matters) Output: $ /mnt/svn/gcc-trunk/binary-155680-lto/bin/g++ -O1 -fcompare-debug -fpeel-loops testcase.cpp -c g++: testcase.cpp: -fcompare-debug failure Valgrind: no errors reported -- Summary: "-fcompare-debug failure" with "-O1 -fpeel-loops" 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=42642