Error: attempt to compare iterators from different sequences

Scott Kostyshak skostysh at lyx.org
Sat May 18 15:28:37 UTC 2024


When I compile LyX with some compiler debug flags and extra checks, I
get the output below when trying to compile a .lyx file to PDF.

Anything worth fixing here?

/usr/include/c++/12/debug/safe_iterator.h:472:
In function:
    bool gnu_debug::operator==(const 
    _Safe_iterator<std::_Rb_tree_const_iterator<std::
    cxx11::basic_string<char> >, std::debug::set<std::
    cxx11::basic_string<char> >, std::forward_iterator_tag>::_Self&, const 
    _Safe_iterator<std::_Rb_tree_const_iterator<std::
    cxx11::basic_string<char> >, std::debug::set<std::
    cxx11::basic_string<char> >, std::forward_iterator_tag>::_Self&)

Error: attempt to compare iterators from different sequences.

Objects involved in the operation:
    iterator "lhs" @ 0x7f60d4fefbc0 {
      type = std::_Rb_tree_const_iterator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > (constant iterator);
      state = dereferenceable (start-of-sequence);
      references sequence with type 'std::debug::set<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' @ 0x7f60d4fefc20
    }
    iterator "rhs" @ 0x7f60d4fefbf0 {
      type = std::_Rb_tree_const_iterator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > (constant iterator);
      state = past-the-end;
      references sequence with type 'std::debug::set<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' @ 0x7f60d4fefc70
    }
Aborted (core dumped)

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240518/9a0766e2/attachment.asc>


More information about the lyx-devel mailing list