https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62256
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-08-26 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This would fix it, but I'm not planning to commit it because I don't think anyone cares about TR1 in current versions of GCC: --- a/libstdc++-v3/include/tr1/random.tcc +++ b/libstdc++-v3/include/tr1/random.tcc @@ -789,11 +789,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION const int __w = std::numeric_limits<result_type>::digits; const result_type __m1 = - std::min(result_type(_M_b1.max() - _M_b1.min()), + std::min<result_type>(result_type(_M_b1.max() - _M_b1.min()), __detail::_Shift<result_type, __w - __s1>::__value - 1); const result_type __m2 = - std::min(result_type(_M_b2.max() - _M_b2.min()), + std::min<result_type>(result_type(_M_b2.max() - _M_b2.min()), __detail::_Shift<result_type, __w - __s2>::__value - 1); // NB: In TR1 s1 is not required to be >= s2.