Compiled with clang++ and local definition of isnan.