http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60407
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- (Tobias, see the URL field) Reduced: #include <math.h> #include <cmath> using namespace std; int main() { double d = 1.0; return isnan(d); } isnan.cc: In function ‘int main()’: isnan.cc:9:17: error: call of overloaded ‘isnan(double&)’ is ambiguous return isnan(d); ^ isnan.cc:9:17: note: candidates are: In file included from /usr/include/features.h:364:0, from /usr/include/math.h:26, from isnan.cc:1: /usr/include/bits/mathcalls.h:234:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from isnan.cc:2:0: /usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x) ^ /usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double) isnan(double __x) ^ /usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float) isnan(float __x) ^