2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
commit85448703831222a79a6e0e1b0bbb4caa733dc881
authoremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jul 2014 14:56:45 +0000 (29 14:56 +0000)
committeremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Jul 2014 14:56:45 +0000 (29 14:56 +0000)
treec98e05a6bf49ab42d191c28ae725ebc36e2debb1
parented61dbd733efdfe550496f7dcf250db46acf3e9c
2014-07-29  Ed Smith-Rowland  <3dw4rd@verizon.net>

PR libstdc++/60037 - SIGFPE in std::generate_canonical<unsigned int...>
* include/bits/random.h (_Adaptor): static_assert for non floating-point
result type.
* include/bits/random.tcc (generate_canonical): Ditto.
* include/ext/random.tcc (hypergeometric_distribution::operator()):
Use double as a rng result type.
* testsuite/26_numerics/random/pr60037-neg.cc: New.
* testsuite/ext/random/hypergeometric_distribution/pr60037.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@213207 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.h
libstdc++-v3/include/bits/random.tcc
libstdc++-v3/include/ext/random.tcc
libstdc++-v3/testsuite/26_numerics/random/pr60037-neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/random/hypergeometric_distribution/pr60037.cc [new file with mode: 0644]