http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51245
Bug #: 51245 Summary: ICE in vn_reference_insert_pieces, at tree-ssa-sccvn.c:1983 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 [regehr@gamow tmp065]$ 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 tmp065]$ current-gcc -Ofast -c -w small.c small.c: In function 'func_1': small.c:11:1: internal compiler error: in vn_reference_insert_pieces, at tree-ssa-sccvn.c:1983 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. [regehr@gamow tmp065]$ cat small.c struct S0 { int f4; }; struct S0 g_122; struct S0 *g_140; struct S0 **g_348; unsigned func_10 (int, int, char); int func_75; struct S0 func_1 () { struct S0 l_444 = { }; if (func_10 (0, 0, 0)) { struct S0 *l_463 = &g_122; for (;;) { *g_140 = l_444; *l_463 = *g_140; if (g_122.f4) break; } } return **g_348; } unsigned func_10 (int p_11, int p_12, char p_13) { if (func_75) **g_348 = *g_140; return 1; }