[Boost-bugs] [Boost C++ Libraries] #1956: gcc43 doesn't compile boost/math/tr1.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #1956: gcc43 doesn't compile boost/math/tr1.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-27 16:58:48


#1956: gcc43 doesn't compile boost/math/tr1.hpp
----------------------------------------------------------+-----------------
 Reporter: Maik Beckmann <Beckmann.Maik_at_[hidden]> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: math
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: |
----------------------------------------------------------+-----------------
 It fails with (gfilt wraps g++-4.3.0)
 {{{
     "gfilt" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC
 -DBOOST_ALL_NO_LIB=1 -DBOOST_MATH_TR1_DYN_LINK=1 -I"." -c -o
 "bin.v2/libs/math/build/gcc-4.3.0/debug/atanh.o"
 "libs/math/build/../src/tr1/atanh.cpp"

 In file included from libs/math/build/../src/tr1/atanh.cpp:7:
 ./boost/math/tr1.hpp: In function ‘bool boost::math::tr1::signbit(T)’:
 ./boost/math/tr1.hpp:608: error: there are no arguments to ‘
     BOOST_STATIC_ASSERT’ that depend on a template parameter, so a
     declaration of ‘BOOST_STATIC_ASSERT’ must be available
 ./boost/math/tr1.hpp:608: error: (
         if you use ‘-fpermissive’, G++ will accept your code, but allowing
         the use of an undeclared name is deprecated)
 ./boost/math/tr1.hpp: In function ‘int boost::math::tr1::fpclassify(T)’:
  ...
 }}}

 I bet this is due to
 {{{
 #ifdef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
 #include <boost/static_assert.hpp>
 #endif
 }}}
 in boost/math/tools/promotion.hpp

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1956>
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:49:57 UTC