gcc/libstdc++-v3/testsuite/ext/random/hypergeometric_distribution
Ed Smith-Rowland 1c4ff014fe PR libstdc++/60037 - SIGFPE in std::generate_canonical<unsigned int...>
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.

From-SVN: r213207
2014-07-29 14:56:45 +00:00
..
cons Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
operators Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
pr60037.cc PR libstdc++/60037 - SIGFPE in std::generate_canonical<unsigned int...> 2014-07-29 14:56:45 +00:00