Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7099: boost/math/special_functions/detail/erf_inv.hpp", line 342: error: floating constant is out of range
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-09 08:49:56
#7099: boost/math/special_functions/detail/erf_inv.hpp", line 342: error: floating
constant is out of range
---------------------------------+------------------------------------------
Reporter: 1czajnik@⦠| Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Comment (by 1czajnik@â¦):
Thanks for looking into this, John.
I've tried the change [79332]. Unfortunately it doesn't fix the problem.
Compiling a file as simple as:
{{{
#include <boost/math/special_functions/erf.hpp>
}}}
with the TI compiler results in error:
"boost/math/special_functions/detail/erf_inv.hpp", lines 339-342,351,353:
error: floating constant is out of range.
The errors on lines 351 and 353 look like a typo to me. On those two
lines: s/BOOST_MATH_BIG_CONSTANT/BOOST_MATH_HUGE_CONSTANT
The errors on lines 339-342 seem to be reported even though this template
is never instantiated. I checked this by adding
BOOST_MPL_ASSERT(mpl::false_) to that function. The assertion is not
reported by the compiler. Looks like the compiler reports an error when it
sees a too large float constant at some early stage of compilation, even
though the constant never gets used.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7099#comment:4> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC