http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60407
Bug ID: 60407 Summary: call of overloaded ‘isnan’ is ambiguous Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dilawar.s.rajput at gmail dot com In a large project, I get the following trace. This, however, compiled with g++4.7.x. Flag -std=c++11 is enabled in both cases. ksolve/RateTerm.h:402:29: note: candidates are: In file included from /usr/include/features.h:371:0, from /usr/include/math.h:27, <deleted lines> /usr/include/i386-linux-gnu/bits/mathcalls.h:235:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from /usr/include/c++/4.8/random:38:0, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, <deleted lines> /usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x)