[Bug libstdc++/48933] Infinite recursion in tr1/cmath functions with complex parameters
paolo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 9 15:48:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48933
--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-05-09 15:38:25 UTC ---
Author: paolo
Date: Mon May 9 15:38:21 2011
New Revision: 173574
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173574
Log:
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.
Added:
trunk/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc
trunk/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/c_global/cmath
trunk/libstdc++-v3/include/tr1/cmath
More information about the Gcc-bugs
mailing list