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:
Jonathan Wakely 2020-07-31 19:58:03 +01:00
parent 9d613af2b4
commit dc8c00966e
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
#include <numbers>
#if defined(_GLIBCXX_USE_FLOAT128)
#if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_FLOAT128)
void
test01()
{

View File

@ -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