Compiler output:
$ gcc -fcompare-debug -O2 -ftree-vectorize -fno-var-tracking-assignments
testcase-min3i.ii
gcc: error: testcase-min3i.ii: -fcompare-debug failure
The difference is:
$ diff testcase-min3i.*gkd
439c439
< (mem/s/c:DI (symbol_ref:DI ("_economy") [flags 0x2] <var_decl #
_economy>) [ MEM[(struct OverflowSafeInt *)&_economy].max_loan.m_value+0 S8
A128])) /usr/include/sys/select.h:485# {*movdi_internal_rex64}
---
> (mem/s/c:DI (symbol_ref:DI ("_economy") [flags 0x2] <var_decl #
> _economy>) [ MEM[(struct OverflowSafeInt &)&_economy].max_loan.m_value+0 S8
> A128])) /usr/include/sys/select.h:485# {*movdi_internal_rex64}
--
Summary: -fcompare-debug failure with -O2 -ftree-vectorize -fno-
var-tracking-assignments
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
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=45408