id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2961,Boost 1.38.0 fails to compile on g++-4.0.2,Alex Shapiro ,John Maddock,"Boost 1.38.0 fails to compile on g++-4.0.2 on x86 Linux (while -4.0.1 is a tested target). The code compiles on g++-3.4.3. The offending file is source:/tags/release/Boost_1_38_0/boost/math/policies/policy.hpp . I'm sorry, that I don't have the full error message here, it's at work, and I don't have the specific compiler setup at home. {{{ namespace detail{ template char test_is_policy(const policy*); double test_is_policy(...); template struct is_policy_imp { BOOST_STATIC_CONSTANT(bool, value = (sizeof(test_is_policy(static_cast(0))) == 1)); }; } }}} The error says that: {{{ ""test_is_policy"" undefined at scope }}}, at line {{{ BOOST_STATIC_CONSTANT(bool, value = (sizeof(test_is_policy(static_cast(0))) == 1)); }}} Solution: Replace {{{ sizeof(test_is_policy(static_cast(0))) }}} with {{{ sizeof(boost::math::policy::detail::test_is_policy(static_cast(0))) }}} Note: the same fix probably applies to source:/trunk/boost/math/policies/policy.hpp",Bugs,closed,To Be Determined,math,Boost 1.38.0,Showstopper,fixed,"4.0.2, math, test_is_policy",