https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69450
--- Comment #5 from John David Anglin <danglin at gcc dot gnu.org> --- The configure check in acinclude.m4 doesn't work: checking for obsolete isinf and isnan functions in <math.h>... no It appears the problem is there is an obsolete isnan but not isinf. We have in config.log: configure:18185: checking for obsolete isinf and isnan functions in <math.h> configure:18209: /test/gnu/gcc/objdir/./gcc/xgcc -shared-libgcc -B/test/gnu/gcc/objdir/./gcc -nostdinc++ -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -L/test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/libsupc++/.libs -B/opt/gnu/gcc/gcc-6.0/hppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-6.0/hppa2.0w-hp-hpux11.11/lib/ -isystem /opt/gnu/gcc/gcc-6.0/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gcc/gcc-6.0/hppa2.0w-hp-hpux11.11/sys-include -c -g -O2 -std=c++11 conftest.cpp >&5 conftest.cpp:42:24: error: '::isinf' has not been declared using ::isinf; ^~~~~ conftest.cpp:51:32: error: call of overloaded 'isinf(double)' is ambiguous bool b = isinf(0.0) || isnan(0.0); ^ conftest.cpp:44:21: note: candidate: bool std::isinf(long double) bool isinf(long double); ^~~~~ conftest.cpp:43:21: note: candidate: bool std::isinf(float) bool isinf(float); ^~~~~ configure:18209: $? = 1 It seems like test needs to be split into two.