------- Comment #2 from edwintorok at gmail dot com 2007-11-17 14:09 ------- (In reply to comment #1) > Created an attachment (id=14572) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14572&action=view) [edit] > reduced testcase > > To reproduce bug run: "gcc -O1 testcase-min.i" > I used the delta tool to produce a reduced testcase. > > The original code is C code generated by LLVM's C backend. >
gcc-3.4 is able to compile the attached testcase without an ICE: $ gcc-3.4 -c /tmp/testcase-min.i -O1 testcase-min.i: In function `main': testcase-min.i:18: warning: assignment makes pointer from integer without a cast testcase-min.i:4: warning: return type of 'main' is not `int' $ gcc-3.4 -v Reading specs from /usr/lib/gcc/x86_64-linux-gnu/3.4.6/specs Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug x86_64-linux-gnu Thread model: posix gcc version 3.4.6 (Debian 3.4.6-6) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34134