From e735008bf64b1044d12810459a1bf647a591c159 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Fri, 1 Dec 2017 15:10:06 +0000 Subject: [PATCH] Use value-init syntax in std::__detail::__airy * include/tr1/modified_bessel_func.tcc (__airy): Use value-init not list-init. From-SVN: r255313 --- libstdc++-v3/ChangeLog | 3 +++ libstdc++-v3/include/tr1/modified_bessel_func.tcc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a23830db4a5..e2dac201d41 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2017-12-01 Jonathan Wakely + * include/tr1/modified_bessel_func.tcc (__airy): Use value-init not + list-init. + * include/std/type_traits (integral_constant): Make member functions noexcept (LWG 2346). * include/std/utility (integer_sequence): Likewise. diff --git a/libstdc++-v3/include/tr1/modified_bessel_func.tcc b/libstdc++-v3/include/tr1/modified_bessel_func.tcc index 3910b95bd28..f39ff6c82d2 100644 --- a/libstdc++-v3/include/tr1/modified_bessel_func.tcc +++ b/libstdc++-v3/include/tr1/modified_bessel_func.tcc @@ -384,11 +384,11 @@ namespace tr1 __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); else if (__z == _S_inf) { - __Aip = __Ai = _Tp{0}; + __Aip = __Ai = _Tp(0); __Bip = __Bi = _S_inf; } else if (__z == -_S_inf) - __Bip = __Aip = __Bi = __Ai = _Tp{0}; + __Bip = __Aip = __Bi = __Ai = _Tp(0); else if (__x > _Tp(0)) { _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; -- 2.30.2