aboutsummaryrefslogtreecommitdiff
path: root/zlib
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2011-11-12 15:57:03 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2011-11-12 15:57:03 +0000
commit306133e3d42250f24023acc7f435ee2a63db0afe (patch)
treeb28a063e9a478a87290e6b1ddea155409d4e9cb1 /zlib
parent33a55f2919b6667660c3d1f87ac0969fb76f26fe (diff)
downloadgcc-306133e3d42250f24023acc7f435ee2a63db0afe.zip
gcc-306133e3d42250f24023acc7f435ee2a63db0afe.tar.gz
gcc-306133e3d42250f24023acc7f435ee2a63db0afe.tar.bz2
re PR libstdc++/51083 (TR1 [tr.c99.cmath.over] and C++11 [cmplx.over] overloads not constrained)
PR libstdc++/51083 * include/ext/type_traits.h (__promote): Only define __type member for integral and floating point types, to prevent math functions participating in overload resolution for other types. (__promote_2, __promote_3, __promote_4): Use __promote in default template argument values, so deduction only succeeds for integral and floating point types. * testsuite/26_numerics/cmath/51083.cc: New. * testsuite/26_numerics/complex/51083.cc: New. * testsuite/tr1/8_c_compatibility/cmath/51083.cc: New. * testsuite/tr1/8_c_compatibility/complex/51083.cc: New. From-SVN: r181321
Diffstat (limited to 'zlib')
0 files changed, 0 insertions, 0 deletions