]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/tr1/legendre_function.tcc
PR libstdc++/86655 - std::assoc_legendre should not constrain
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Wed, 6 Mar 2019 13:38:32 +0000 (13:38 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Wed, 6 Mar 2019 13:38:32 +0000 (13:38 +0000)
commitf29a1ef2d8efb9423b878c9d5da1961527fce707
tree21b8b63b090cccd3d46c16a7baa8544920926c05
parent669a6fdcb436ae81f7621c35d90f7c41ed2117a7
PR libstdc++/86655 - std::assoc_legendre should not constrain

2019-03-06  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR libstdc++/86655 - std::assoc_legendre should not constrain
the value of m (or x).
* include/tr1/legendre_function.tcc (__assoc_legendre_p,
__sph_legendre): If degree > order Don't throw, return 0.
(__legendre_p, __assoc_legendre_p): Don't constrain x either.
* testsuite/special_functions/02_assoc_legendre/pr86655.cc: New test.
* testsuite/special_functions/20_sph_legendre/pr86655.cc: New test.
* testsuite/tr1/5_numerical_facilities/special_functions/
02_assoc_legendre/pr86655.cc: New test.
* testsuite/tr1/5_numerical_facilities/special_functions/
22_sph_legendre/pr86655.cc: New test.

From-SVN: r269423
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/legendre_function.tcc
libstdc++-v3/testsuite/special_functions/02_assoc_legendre/pr86655.cc [new file with mode: 0644]
libstdc++-v3/testsuite/special_functions/20_sph_legendre/pr86655.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/02_assoc_legendre/pr86655.cc [new file with mode: 0644]
libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/22_sph_legendre/pr86655.cc [new file with mode: 0644]