https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92059

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ugh, this is a can of worms:

#include <tr2/dynamic_bitset>
#include <cassert>
int main()
{
  std::tr2::dynamic_bitset<> a(2, 4);
  std::tr2::dynamic_bitset<> b(3, 4);
  assert(a != b);
}

/usr/include/c++/8/tr2/dynamic_bitset:100:13: runtime error: shift exponent 64
is too large for 64-bit type 'long long unsigned int'
a.out: dynbs.cc:7: int main(): Assertion `a != b' failed.
Aborted (core dumped)

Reply via email to