On a glibc system, with gcc 10.2.0, I'm seeing a compilation failure of test-math-c++.cc:
In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:907:1: error: type of 'cbrt' is unknown 907 | _GL_CXXALIASWARN (cbrt); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:907:1: error: 'int cbrt' redeclared as different kind of entity 907 | _GL_CXXALIASWARN (cbrt); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:169:1: note: previous declaration 'double cbrt(double)' 169 | __MATHCALL (cbrt,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:977:1: error: type of 'ceil' is unknown 977 | _GL_CXXALIASWARN (ceil); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:977:1: error: 'int ceil' redeclared as different kind of entity 977 | _GL_CXXALIASWARN (ceil); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:178:1: note: previous declaration 'double ceil(double)' 178 | __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1029:1: error: type of 'copysign' is unknown 1029 | _GL_CXXALIASWARN (copysign); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1029:1: error: 'int copysign' redeclared as different kind of entity 1029 | _GL_CXXALIASWARN (copysign); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration 'double copysign(double, double)' 221 | __MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1201:1: error: type of 'exp2' is unknown 1201 | _GL_CXXALIASWARN (exp2); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1201:1: error: 'int exp2' redeclared as different kind of entity 1201 | _GL_CXXALIASWARN (exp2); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:141:1: note: previous declaration 'double exp2(double)' 141 | __MATHCALL (exp2,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1274:1: error: type of 'expm1' is unknown 1274 | _GL_CXXALIASWARN (expm1); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1274:1: error: 'int expm1' redeclared as different kind of entity 1274 | _GL_CXXALIASWARN (expm1); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:128:1: note: previous declaration 'double expm1(double)' 128 | __MATHCALL (expm1,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1391:1: error: type of 'floor' is unknown 1391 | _GL_CXXALIASWARN (floor); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1391:1: error: 'int floor' redeclared as different kind of entity 1391 | _GL_CXXALIASWARN (floor); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:184:1: note: previous declaration 'double floor(double)' 184 | __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1462:1: error: type of 'fma' is unknown 1462 | _GL_CXXALIASWARN (fma); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1462:1: error: 'int fma' redeclared as different kind of entity 1462 | _GL_CXXALIASWARN (fma); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:366:1: note: previous declaration 'double fma(double, double, double)' 366 | __MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1539:1: error: type of 'fmod' is unknown 1539 | _GL_CXXALIASWARN (fmod); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1539:1: error: 'int fmod' redeclared as different kind of entity 1539 | _GL_CXXALIASWARN (fmod); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:187:1: note: previous declaration 'double fmod(double, double)' 187 | __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1714:1: error: type of 'hypot' is unknown 1714 | _GL_CXXALIASWARN (hypot); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1714:1: error: 'int hypot' redeclared as different kind of entity 1714 | _GL_CXXALIASWARN (hypot); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:162:1: note: previous declaration 'double hypot(double, double)' 162 | __MATHCALL (hypot,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1789:1: error: type of 'ilogb' is unknown 1789 | _GL_CXXALIASWARN (ilogb); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1789:1: error: 'int ilogb' redeclared as different kind of entity 1789 | _GL_CXXALIASWARN (ilogb); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:306:1: note: previous declaration 'int ilogb(double)' 306 | __MATHDECL (int,ilogb,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1923:1: error: type of 'log' is unknown 1923 | _GL_CXXALIASWARN (log); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1923:1: error: 'int log' redeclared as different kind of entity 1923 | _GL_CXXALIASWARN (log); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:109:1: note: previous declaration 'double log(double)' 109 | __MATHCALL_VEC (log,, (_Mdouble_ __x)); | ^~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:1996:1: error: type of 'log10' is unknown 1996 | _GL_CXXALIASWARN (log10); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:1996:1: error: 'int log10' redeclared as different kind of entity 1996 | _GL_CXXALIASWARN (log10); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:112:1: note: previous declaration 'double log10(double)' 112 | __MATHCALL (log10,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2071:1: error: type of 'log1p' is unknown 2071 | _GL_CXXALIASWARN (log1p); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2071:1: error: 'int log1p' redeclared as different kind of entity 2071 | _GL_CXXALIASWARN (log1p); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:131:1: note: previous declaration 'double log1p(double)' 131 | __MATHCALL (log1p,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2145:1: error: type of 'log2' is unknown 2145 | _GL_CXXALIASWARN (log2); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2145:1: error: 'int log2' redeclared as different kind of entity 2145 | _GL_CXXALIASWARN (log2); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:144:1: note: previous declaration 'double log2(double)' 144 | __MATHCALL (log2,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2217:1: error: type of 'logb' is unknown 2217 | _GL_CXXALIASWARN (logb); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2217:1: error: 'int logb' redeclared as different kind of entity 2217 | _GL_CXXALIASWARN (logb); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:134:1: note: previous declaration 'double logb(double)' 134 | __MATHCALL (logb,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2287:1: error: type of 'modf' is unknown 2287 | _GL_CXXALIASWARN (modf); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2287:1: error: 'int modf' redeclared as different kind of entity 2287 | _GL_CXXALIASWARN (modf); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:115:1: note: previous declaration 'double modf(double, double*)' 115 | __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2380:1: error: type of 'remainder' is unknown 2380 | _GL_CXXALIASWARN (remainder); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2380:1: error: 'int remainder' redeclared as different kind of entity 2380 | _GL_CXXALIASWARN (remainder); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:298:1: note: previous declaration 'double remainder(double, double)' 298 | __MATHCALL (remainder,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2437:1: error: type of 'rint' is unknown 2437 | _GL_CXXALIASWARN (rint); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2437:1: error: 'int rint' redeclared as different kind of entity 2437 | _GL_CXXALIASWARN (rint); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:289:1: note: previous declaration 'double rint(double)' 289 | __MATHCALL (rint,, (_Mdouble_ __x)); | ^~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2509:1: error: type of 'round' is unknown 2509 | _GL_CXXALIASWARN (round); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2509:1: error: 'int round' redeclared as different kind of entity 2509 | _GL_CXXALIASWARN (round); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:319:1: note: previous declaration 'double round(double)' 319 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/sys/types.h:219, from ../gllib/sys/types.h:39, from /usr/include/stdlib.h:314, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/bits/std_abs.h:38, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:47, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: ../gllib/math.h:2769:1: error: type of 'trunc' is unknown 2769 | _GL_CXXALIASWARN (trunc); | ^~~~~~~~~~~~~~~~ ../gllib/math.h:2769:1: error: 'int trunc' redeclared as different kind of entity 2769 | _GL_CXXALIASWARN (trunc); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/features.h:367, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/x86_64-pc-linux-gnu/bits/c++config.h:518, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/cmath:41, from /media/nas/pub/arch/x86_64-linux-gnu/gnu-inst-gcc/10.2.0/include/c++/10.2.0/math.h:36, from ../gllib/math.h:27, from ../../gltests/test-math-c++.cc:22: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:323:1: note: previous declaration 'double trunc(double)' 323 | __MATHCALLX (trunc,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_signbit_3' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:35:3: note: in expansion of macro 'OVERLOADED_CHECK' 35 | OVERLOADED_CHECK (func, rettype3, parameters3, _3) | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:409:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 409 | REAL_FLOATING_CHECK (signbit, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_signbit_2' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:34:3: note: in expansion of macro 'OVERLOADED_CHECK' 34 | OVERLOADED_CHECK (func, rettype2, parameters2, _2); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:409:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 409 | REAL_FLOATING_CHECK (signbit, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_signbit_1' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:33:3: note: in expansion of macro 'OVERLOADED_CHECK' 33 | OVERLOADED_CHECK (func, rettype1, parameters1, _1); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:409:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 409 | REAL_FLOATING_CHECK (signbit, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isnan_3' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:35:3: note: in expansion of macro 'OVERLOADED_CHECK' 35 | OVERLOADED_CHECK (func, rettype3, parameters3, _3) | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:402:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 402 | REAL_FLOATING_CHECK (isnan, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isnan_2' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:34:3: note: in expansion of macro 'OVERLOADED_CHECK' 34 | OVERLOADED_CHECK (func, rettype2, parameters2, _2); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:402:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 402 | REAL_FLOATING_CHECK (isnan, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isnan_1' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:33:3: note: in expansion of macro 'OVERLOADED_CHECK' 33 | OVERLOADED_CHECK (func, rettype1, parameters1, _1); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:402:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 402 | REAL_FLOATING_CHECK (isnan, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isinf_3' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:35:3: note: in expansion of macro 'OVERLOADED_CHECK' 35 | OVERLOADED_CHECK (func, rettype3, parameters3, _3) | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:395:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 395 | REAL_FLOATING_CHECK (isinf, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isinf_2' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:34:3: note: in expansion of macro 'OVERLOADED_CHECK' 34 | OVERLOADED_CHECK (func, rettype2, parameters2, _2); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:395:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 395 | REAL_FLOATING_CHECK (isinf, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isinf_1' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:33:3: note: in expansion of macro 'OVERLOADED_CHECK' 33 | OVERLOADED_CHECK (func, rettype1, parameters1, _1); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:395:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 395 | REAL_FLOATING_CHECK (isinf, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isfinite_3' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:35:3: note: in expansion of macro 'OVERLOADED_CHECK' 35 | OVERLOADED_CHECK (func, rettype3, parameters3, _3) | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:388:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 388 | REAL_FLOATING_CHECK (isfinite, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isfinite_2' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:34:3: note: in expansion of macro 'OVERLOADED_CHECK' 34 | OVERLOADED_CHECK (func, rettype2, parameters2, _2); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:388:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 388 | REAL_FLOATING_CHECK (isfinite, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:37:32: warning: 'signature_check_rpl_isfinite_1' defined but not used [-Wunused-variable] 37 | static rettype (* _GL_UNUSED signature_check_ ## func ## suffix) parameters \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:33:3: note: in expansion of macro 'OVERLOADED_CHECK' 33 | OVERLOADED_CHECK (func, rettype1, parameters1, _1); \ | ^~~~~~~~~~~~~~~~ ../../gltests/test-math-c++.cc:388:1: note: in expansion of macro 'REAL_FLOATING_CHECK' 388 | REAL_FLOATING_CHECK (isfinite, bool, (float), bool, (double), bool, (long double)); | ^~~~~~~~~~~~~~~~~~~ make[4]: *** [Makefile:10251: test-math-c++.o] Error 1 This error "type of 'cbrt' is unknown" occurs because gnulib's _GL_CXXALIASWARN (cbrt); still expands to extern __typeof__ (cbrt) cbrt; And the <cmath> file of this g++ version now, instead of a simple constexpr double cbrt(double __x) { return __builtin_cbrt(__x); } contains template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cbrt(_Tp __x) { return __builtin_cbrt(__x); } This template has the consequence that we have to specify the argument type in the declaration. This patch fixes it. 2020-08-19 Bruno Haible <br...@clisp.org> math C++ tests: Fix compilation error in with GCC 10. * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint, round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN. diff --git a/lib/math.in.h b/lib/math.in.h index 2fa79bb..a020271 100644 --- a/lib/math.in.h +++ b/lib/math.in.h @@ -405,7 +405,7 @@ _GL_FUNCDECL_SYS (cbrt, double, (double x)); # endif _GL_CXXALIAS_SYS (cbrt, double, (double x)); # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (cbrt); +_GL_CXXALIASWARN1 (cbrt, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef cbrt @@ -475,7 +475,7 @@ _GL_CXXALIAS_RPL (ceil, double, (double x)); _GL_CXXALIAS_SYS (ceil, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (ceil); +_GL_CXXALIASWARN1 (ceil, double, (double x)); # endif #endif @@ -527,7 +527,7 @@ _GL_FUNCDECL_SYS (copysign, double, (double x, double y)); # endif _GL_CXXALIAS_SYS (copysign, double, (double x, double y)); # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (copysign); +_GL_CXXALIASWARN1 (copysign, double, (double x, double y)); # endif #elif defined GNULIB_POSIXCHECK # undef copysign @@ -699,7 +699,7 @@ _GL_FUNCDECL_SYS (exp2, double, (double x)); _GL_CXXALIAS_SYS (exp2, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (exp2); +_GL_CXXALIASWARN1 (exp2, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef exp2 @@ -772,7 +772,7 @@ _GL_FUNCDECL_SYS (expm1, double, (double x)); _GL_CXXALIAS_SYS (expm1, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (expm1); +_GL_CXXALIASWARN1 (expm1, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef expm1 @@ -889,7 +889,7 @@ _GL_CXXALIAS_RPL (floor, double, (double x)); _GL_CXXALIAS_SYS (floor, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (floor); +_GL_CXXALIASWARN1 (floor, double, (double x)); # endif #endif @@ -960,7 +960,7 @@ _GL_FUNCDECL_SYS (fma, double, (double x, double y, double z)); _GL_CXXALIAS_SYS (fma, double, (double x, double y, double z)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (fma); +_GL_CXXALIASWARN1 (fma, double, (double x, double y, double z)); # endif #elif defined GNULIB_POSIXCHECK # undef fma @@ -1037,7 +1037,7 @@ _GL_CXXALIAS_RPL (fmod, double, (double x, double y)); _GL_CXXALIAS_SYS (fmod, double, (double x, double y)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (fmod); +_GL_CXXALIASWARN1 (fmod, double, (double x, double y)); # endif #elif defined GNULIB_POSIXCHECK # undef fmod @@ -1212,7 +1212,7 @@ _GL_CXXALIAS_RPL (hypot, double, (double x, double y)); _GL_CXXALIAS_SYS (hypot, double, (double x, double y)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (hypot); +_GL_CXXALIASWARN1 (hypot, double, (double x, double y)); # endif #elif defined GNULIB_POSIXCHECK # undef hypot @@ -1287,7 +1287,7 @@ _GL_FUNCDECL_SYS (ilogb, int, (double x)); _GL_CXXALIAS_SYS (ilogb, int, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (ilogb); +_GL_CXXALIASWARN1 (ilogb, int, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef ilogb @@ -1421,7 +1421,7 @@ _GL_CXXALIAS_RPL (log, double, (double x)); _GL_CXXALIAS_SYS (log, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (log); +_GL_CXXALIASWARN1 (log, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef log @@ -1494,7 +1494,7 @@ _GL_CXXALIAS_RPL (log10, double, (double x)); _GL_CXXALIAS_SYS (log10, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (log10); +_GL_CXXALIASWARN1 (log10, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef log10 @@ -1569,7 +1569,7 @@ _GL_FUNCDECL_SYS (log1p, double, (double x)); _GL_CXXALIAS_SYS (log1p, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (log1p); +_GL_CXXALIASWARN1 (log1p, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef log1p @@ -1643,7 +1643,7 @@ _GL_FUNCDECL_SYS (log2, double, (double x)); _GL_CXXALIAS_SYS (log2, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (log2); +_GL_CXXALIASWARN1 (log2, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef log2 @@ -1715,7 +1715,7 @@ _GL_FUNCDECL_SYS (logb, double, (double x)); _GL_CXXALIAS_SYS (logb, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (logb); +_GL_CXXALIASWARN1 (logb, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef logb @@ -1785,7 +1785,7 @@ _GL_CXXALIAS_RPL (modf, double, (double x, double *iptr)); _GL_CXXALIAS_SYS (modf, double, (double x, double *iptr)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (modf); +_GL_CXXALIASWARN1 (modf, double, (double x, double *iptr)); # endif #elif defined GNULIB_POSIXCHECK # undef modf @@ -1878,7 +1878,7 @@ _GL_FUNCDECL_SYS (remainder, double, (double x, double y)); _GL_CXXALIAS_SYS (remainder, double, (double x, double y)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (remainder); +_GL_CXXALIASWARN1 (remainder, double, (double x, double y)); # endif #elif defined GNULIB_POSIXCHECK # undef remainder @@ -1935,7 +1935,7 @@ _GL_FUNCDECL_SYS (rint, double, (double x)); # endif _GL_CXXALIAS_SYS (rint, double, (double x)); # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (rint); +_GL_CXXALIASWARN1 (rint, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef rint @@ -2007,7 +2007,7 @@ _GL_FUNCDECL_SYS (round, double, (double x)); _GL_CXXALIAS_SYS (round, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (round); +_GL_CXXALIASWARN1 (round, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef round @@ -2267,7 +2267,7 @@ _GL_FUNCDECL_SYS (trunc, double, (double x)); _GL_CXXALIAS_SYS (trunc, double, (double x)); # endif # if __GLIBC__ >= 2 -_GL_CXXALIASWARN (trunc); +_GL_CXXALIASWARN1 (trunc, double, (double x)); # endif #elif defined GNULIB_POSIXCHECK # undef trunc