------- Comment #3 from reichelt at gcc dot gnu dot org 2006-04-19 20:07 ------- Confirmed.
Reduced testcase (compile with "-O -ftrapv"): ================================== char *p, *q; inline int foo(int i) { return (p - q) + i; } void bar() { int n, i; for (n = 7; n-- > 0; ) for (i = n; i-- > 0; ) if (i) p += -foo(i-1); } ================================== The testcase eats more than 2 GB of memory within seconds. This happens with C and C++ frontend. The bug only affects the 4.0 branch. -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reichelt at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |monitored Known to fail| |4.0.1 4.0.3 Known to work| |3.4.6 4.1.0 Last reconfirmed|0000-00-00 00:00:00 |2006-04-19 20:07:03 date| | Summary|ICE with -O -ftrapv |[4.0 regression] ICE with -O | |-ftrapv Target Milestone|--- |4.0.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27173