http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51246
Bug #: 51246 Summary: ICE in replace_ref_with, at tree-predcom.c:1309 Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: reg...@cs.utah.edu CC: cheny...@cs.utah.edu [regehr@gamow tmp067]$ current-gcc -v Using built-in specs. COLLECT_GCC=current-gcc COLLECT_LTO_WRAPPER=/uusoc/exports/scratch/regehr/z/compiler-install/gcc-r181530-install/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --with-libelf=/usr/local --enable-lto --prefix=/home/regehr/z/compiler-install/gcc-r181530-install --program-prefix=r181530- --enable-languages=c,c++ Thread model: posix gcc version 4.7.0 20111120 (experimental) (GCC) [regehr@gamow tmp067]$ current-gcc -c -w -Ofast small.c small.c: In function 'func_2': small.c:16:1: internal compiler error: in replace_ref_with, at tree-predcom.c:1309 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. [regehr@gamow tmp067]$ cat small.c int func_42 (int si1, int si2) { return si1; } int func_11 (int ui1, int ui2) { return ui1; } char g_50; int *g_71; int * func_2 () { int **l_422 = &g_71; for (;;) { int l_427; char *l_450 = &g_50; *l_422 = (*l_450 = func_11 (func_42 (l_427, 0), 0), &l_427); } }