The attached code results in an ICE if compiled as follows: dogbert> gcc -O1 -ftree-vectorize -c t.c t.c: In function ‘c’: t.c:4: internal compiler error: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1513 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. dogbert> gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc/configure --prefix=/usr/local/gcc410 --enable-languages=c,c++,f95 Thread model: posix gcc version 4.1.0 20050605 (experimental)
This bug does not show up in the 4.0 release branch. -- Summary: internal compiler error: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1513 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: p dot van-hoof at qub dot ac dot uk CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21922