re PR libstdc++/48933 (Infinite recursion in tr1/cmath functions with complex parameters)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 9 May 2011 15:38:21 +0000 (15:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 9 May 2011 15:38:21 +0000 (15:38 +0000)
commitb04fa7381131433b4019acea6b8e95aadd60aec4
tree20e5b92b56d2f0953650bff5a899f3322af42ab5
parenta9e6994ab9f27c07d9345b6e5cbeb3ed2cf21625
re PR libstdc++/48933 (Infinite recursion in tr1/cmath functions with complex parameters)

2011-05-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/48933
* include/c_global/cmath (acosh, asinh, atanh, cbrt, copysign,
erf, erfc, exp2, expm1, fdim, fma, fmax, hypot, ilogb, lgamma,
llrint, llround, log1p, log2, logb, lrint, lround, nearbyint,
nextafter, nexttoward, remainder, remquo, rint, round, scalbln,
scalbn, tgamma, trunc): Use __enable_if on the return type.
* include/tr1/cmath: Likewise.
* testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc: New.
* testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc: Likewise.

From-SVN: r173574
libstdc++-v3/ChangeLog
libstdc++-v3/include/c_global/cmath
libstdc++-v3/include/tr1/cmath
libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc [new file with mode: 0644]