https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68984
Bug ID: 68984 Summary: error: ‘constexpr bool std::isinf(double)’ conflicts with a previous declaration Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org Target Milestone: --- markus@x4 tmp % cat isinf.cpp #include <cmath> using std::isinf; markus@x4 tmp % g++ -std=c++11 -c isinf.cpp isinf.cpp:2:12: error: ‘constexpr bool std::isinf(double)’ conflicts with a previous declaration using std::isinf; ^~~~~ In file included from /usr/include/features.h:368:0, from /usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0/include/g++-v6/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0/include/g++-v6/x86_64-pc-linux-gnu/bits/c++config.h:493, from /usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0/include/g++-v6/cmath:41, from isinf.cpp:1: /usr/include/bits/mathcalls.h:201:1: note: previous declaration ‘int isinf(double)’ __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ markus@x4 tmp % clang++ -stdlib=libc++ -std=c++11 -c isinf.cpp markus@x4 tmp %