I'm using SVN revision 122834.

> cat bug.cc
int buf[2];
int f(int x) {
        return (x & 1) ? buf[0] : buf[1];
}
void g() {
        for (int x = 0; x < 100 && f(x); ++x);
}

> g++ -O3 -ftracer bug.ccbug.cc: In function 'void g()':
bug.cc:7: internal compiler error: in cse_find_path, at cse.c:5930

> g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../configure -v --enable-languages=c,c++
--prefix=/home/wouter/gcc/local --enable-shared --with-system-zlib --enable-nls
--enable-threads=posix --without-included-gettext --disable-werror
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug i486-linux-gnu --enable-libmudflap
--enable-checking=release
Thread model: posix
gcc version 4.3.0 20070312 (experimental)


-- 
           Summary: ICE: in cse_find_path, at cse.c:5930    with -O3 -
                    ftracer
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wouter dot vermaelen at pi dot be


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31145

Reply via email to