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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
And we don't even do that check for the const overload, even in debug mode!

      // _GLIBCXX_RESOLVE_LIB_DEFECTS
      // 11. Bitset minor problems
      _GLIBCXX_CONSTEXPR bool
      operator[](size_t __pos) const
      {
#if __cplusplus < 201103L
        // TODO: Check in debug-mode too.
        __glibcxx_check_subscript(__pos);
#endif
        return _Base::operator[](__pos);
      }

I think we should just scrap <debug/bitset>.

Reply via email to