Opened 8 years ago

Closed 8 years ago

#10919 closed Bugs (wontfix)

test_cmath_tricky.test:error: 'exp2' is not a member of 'std::tr1'

Reported by: angela.xie@… Owned by: John Maddock
Milestone: To Be Determined Component: TR1
Version: Boost 1.56.0 Severity: Problem
Keywords: Cc:

Description

Problem:tr1/test_cmath_tricky.test fails to compile with "test_cmath_tricky.cpp:68:27: error: 'exp2' is not a member of 'std::tr1'" with studio 12.4 and g++-4.8.2 on Solaris 11.2

Test with Studio 12.4: "test_cmath_tricky.cpp", line 68: Error: exp2 is not a member of std::tr1. "test_cmath_tricky.cpp", line 69: Error: exp2 is not a member of std::tr1. "test_cmath_tricky.cpp", line 70: Error: exp2 is not a member of std::tr1. "test_cmath_tricky.cpp", line 71: Error: exp2f is not a member of std::tr1. "test_cmath_tricky.cpp", line 72: Error: exp2l is not a member of std::tr1. "test_cmath_tricky.cpp", line 78: Error: fdim is not a member of std::tr1. "test_cmath_tricky.cpp", line 79: Error: fdim is not a member of std::tr1. "test_cmath_tricky.cpp", line 80: Error: fdim is not a member of std::tr1. "test_cmath_tricky.cpp", line 81: Error: fdimf is not a member of std::tr1. "test_cmath_tricky.cpp", line 82: Error: fdiml is not a member of std::tr1. "test_cmath_tricky.cpp", line 83: Error: fma is not a member of std::tr1. "test_cmath_tricky.cpp", line 84: Error: fma is not a member of std::tr1. "test_cmath_tricky.cpp", line 85: Error: fma is not a member of std::tr1. "test_cmath_tricky.cpp", line 86: Error: fmaf is not a member of std::tr1. "test_cmath_tricky.cpp", line 87: Error: fmal is not a member of std::tr1.

"test_cmath_tricky.cpp", line 103: Error: ilogb is not a member of std::tr1. "test_cmath_tricky.cpp", line 104: Error: ilogb is not a member of std::tr1. "test_cmath_tricky.cpp", line 105: Error: ilogb is not a member of std::tr1. "test_cmath_tricky.cpp", line 106: Error: ilogbf is not a member of std::tr1. "test_cmath_tricky.cpp", line 107: Error: ilogbl is not a member of std::tr1. "test_cmath_tricky.cpp", line 113: Error: llrint is not a member of std::tr1. "test_cmath_tricky.cpp", line 114: Error: llrint is not a member of std::tr1. "test_cmath_tricky.cpp", line 115: Error: llrint is not a member of std::tr1. "test_cmath_tricky.cpp", line 116: Error: llrintf is not a member of std::tr1. "test_cmath_tricky.cpp", line 117: Error: llrintl is not a member of std::tr1.

Test with g++-4.8.2 test_cmath_tricky.cpp: In function 'int main(int, const char)': test_cmath_tricky.cpp:68:27: error: 'exp2' is not a member of 'std::tr1'

verify_return_type((std::tr1::exp2)(d), d);

test_cmath_tricky.cpp:68:27: note: suggested alternative: In file included from /usr/include/math.h:13:0,

from ../../../boost/math/tr1.hpp:14, from ../../../boost/tr1/cmath.hpp:21, from test_cmath_tricky.cpp:13:

/usr/include/iso/math_c99.h:215:15: note: 'exp2'

extern double exp2 P((double));

test_cmath_tricky.cpp:69:27: error: 'exp2' is not a member of 'std::tr1'

verify_return_type((std::tr1::exp2)(f), f);

test_cmath_tricky.cpp:69:27: note: suggested alternative: In file included from /usr/include/math.h:13:0,

from ../../../boost/math/tr1.hpp:14, from ../../../boost/tr1/cmath.hpp:21, from test_cmath_tricky.cpp:13:

... test_cmath_tricky.cpp:71:27: error: 'exp2f' is not a member of 'std::tr1'

verify_return_type((std::tr1::exp2f)(f), f);

test_cmath_tricky.cpp:71:27: note: suggested alternative: In file included from /usr/include/math.h:13:0,

from ../../../boost/math/tr1.hpp:14, from ../../../boost/tr1/cmath.hpp:21, from test_cmath_tricky.cpp:13:

/usr/include/iso/math_c99.h:269:14: note: 'exp2f'

extern float exp2f P((float));

test_cmath_tricky.cpp:72:27: error: 'exp2l' is not a member of 'std::tr1'

verify_return_type((std::tr1::exp2l)(ld), ld);

...

Change History (1)

comment:1 by John Maddock, 8 years ago

Resolution: wontfix
Status: newclosed

Two points:

  • The "tricky*.cpp" tests in TR1 will only compile if the compiler vendor provides a conforming TR1 implementation.
  • Boost.TR1 is depricated and will be removed in a future release anyway.
Note: See TracTickets for help on using tickets.