[Bug 1056783] GCC 6 C++: std::isnan fails to compile with cmath