libstdc++: Avoid using __float128 in strict modes
libstdc++-v3/ChangeLog: * testsuite/26_numerics/numbers/float128.cc: Check __STRICT_ANSI__ before using __float128. * testsuite/std/concepts/concepts.lang/concept.arithmetic/floating_point.cc: Likewise.
This commit is contained in:
parent
9d613af2b4
commit
dc8c00966e
@ -20,7 +20,7 @@
|
||||
|
||||
#include <numbers>
|
||||
|
||||
#if defined(_GLIBCXX_USE_FLOAT128)
|
||||
#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128)
|
||||
void
|
||||
test01()
|
||||
{
|
||||
|
@ -23,7 +23,7 @@
|
||||
static_assert( std::floating_point<float> );
|
||||
static_assert( std::floating_point<double> );
|
||||
static_assert( std::floating_point<long double> );
|
||||
#ifdef _GLIBCXX_USE_FLOAT128
|
||||
#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128)
|
||||
static_assert( std::floating_point<__float128> );
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user