This is the mail archive of the libstdc++-cvs@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r175054 - in /branches/google/gcc-4_6: ./ libst...


Author: jyasskin
Date: Tue Jun 14 20:25:32 2011
New Revision: 175054

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175054
Log:
Fixes an infinite recursion in C++0x mode when a user-defined trunc() (for
example) function is called with an argument in namespace std and a parameter
type that has an implicit conversion from the argument's type.

2011-06-14  Jeffrey Yasskin  <jyasskin@google.com>

	Google ref 4553873.

	Merge r173574.
	* 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:
    branches/google/gcc-4_6/libstdc++-v3/ChangeLog.google-4_6
    branches/google/gcc-4_6/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc
      - copied unchanged from r173574, trunk/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc
    branches/google/gcc-4_6/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc
      - copied unchanged from r173574, trunk/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc
Modified:
    branches/google/gcc-4_6/libstdc++-v3/include/c_global/cmath
    branches/google/gcc-4_6/libstdc++-v3/include/tr1/cmath

Changes in other areas also in this revision:
Modified:
    branches/google/gcc-4_6/   (props changed)

Propchange: branches/google/gcc-4_6/
            ('svn:mergeinfo' modified)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]