Repository navigation
[GNATS 25315] __builtin_sinf used as constexpr in gcc ccmath header #130
jhsedg
started this conversation in
Issue Triage - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Customer bug ID
ccmath_abs.test.C
Description
eccp -D__STRICT_ANSI__ --timing --gnu_version=110100 -w --no_inlining --no_wrap_diagnostics --display_error --erro
r_limit 1 -DBOOST_ALL_NO_LIB=1 -DBOOST_BEAST_ALLOW_DEPRECATED -DBOOST_BEAST_SEPARATE_COMPILATION -DBOOST_TEST_NO_AU
TO_LINK=1 -DBOOST_UBLAS_UNSUPPORTED_COMPILER=0 -I.. -I../libs/math/include_private -I../libs/math/test -c -o ../bin.
v2/libs/math/test/ccmath_abs_test.test/gcc-11/debug/link-static/threading-multi/visibility-hidden/ccmath_abs_test.o
../libs/math/test/ccmath_abs_test.cpp --c++17 -D__GXX_EXPERIMENTAL_CXX0X__=1 -tused
"../libs/math/test/ccmath_abs_test.cpp", line 35: error #28: expression must have a constant value
static_assert(std::sin(T(0)) == 0);
^
"/mds/gnu/build/gcc-11.1.0/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../include/c++/11.1.0/cmath", line 426: note
#2703-D: cannot call non-constexpr function "__builtin_sinf" (declared implicitly)
{ return __builtin_sinf(__x); }
^
detected during instantiation of "void gpp_test() [with T=float]" at line 95
Notes
2024-12-17, ellen.
Boost 1.87.0 had a major update to the Math library and this test no longer exists.
All reactions