> cat bug.cc
inline double f(double) {
        int t;
        asm("fldcw %0" : : "m"(t));
}
double a;
void g(unsigned long long c) {
        double b = c;
        a = f(b) ? b : b - a;
}

> g++ -O2 -ftracer bug.cc
bug.cc: In function 'void g(long long unsigned int)':
bug.cc:9: internal compiler error: Segmentation fault

> g++ --version
g++ (GCC) 4.3.0 20070309 (experimental)


-- 
           Summary: ICE with -O2 -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=31102

Reply via email to