[PR c++/84492] stmt expr ending with overload
[official-gcc.git] / libstdc++-v3 / testsuite / 26_numerics / random / pr60037-neg.cc
blob13c052daef851a009e76c63cae5239078bebbfa4
1 // { dg-do compile { target c++11 } }
3 #include <random>
5 std::mt19937 urng;
7 std::__detail::_Adaptor<std::mt19937, unsigned long> aurng(urng);
9 auto x = std::generate_canonical<std::size_t,
10 std::numeric_limits<std::size_t>::digits>(urng);
12 // { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 156 }
14 // { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 3317 }