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

           Summary: "unexpected ast of kind unordered_expr" using isnan()
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jens.mau...@gmx.net


extern "C" {
  extern int isnan (double __value) throw () __attribute__ ((__const__));
}

int main()
{
    double v = 0;
    const bool b = isnan(v);
}


compiling with  "g++ -std=gnu++0x bug.cc"
yields:

bug.cc: In function ‘int main()’:
bug.cc:11:27: sorry, unimplemented: unexpected ast of kind unordered_expr
bug.cc:11: confused by earlier errors, bailing out


(Using -std=c++0x avoids the issue.)

Reply via email to