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

            Bug ID: 90276
           Summary: FAIL:
                    20_util/specialized_algorithms/pstl/uninitialized_copy
                    _move.cc execution test
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: rodgertq at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

This test fails in Debug Mode i.e.

make check $RTF="20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc
--target_board=unix/-D_GLIBCXX_DEBUG"

The error is:

/home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/debug/safe_iterator.h:874:
In function:
    __gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<short int*,
    std::__cxx1998::vector<short int, std::allocator<short int> > >,
    std::__debug::vector<short int, std::allocator<short int> >,
    std::random_access_iterator_tag>::difference_type
    __gnu_debug::operator-(const _Self&, const _Self&)

Error: attempt to compute the difference between a singular iterator to a
singular iterator.

Objects involved in the operation:
    iterator "__lhs" @ 0x0x7ffd09bd9760 {
      type = __gnu_cxx::__normal_iterator<short*, std::__cxx1998::vector<short,
std::allocator<short> > > (mutable iterator);
      state = singular;
    }
    iterator "__rhs" @ 0x0x7ffd09bd9730 {
      type = __gnu_cxx::__normal_iterator<short*, std::__cxx1998::vector<short,
std::allocator<short> > > (mutable iterator);
      state = singular;
    }
FAIL: 20_util/specialized_algorithms/pstl/uninitialized_copy_move.cc execution
test

Reply via email to