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

--- Comment #3 from 康桓瑋 <hewillk at gmail dot com> ---
(In reply to Tamar Christina from comment #2)
> I also get an ICE related:
> 
> /opt/buildAgent/temp/buildTmp/toolchain/include/c++/15.0.0/bits/stl_algo.h:
> 3873:38: error: no match for 'operator+' (operand types are
> 'std::_Rb_tree_const_iterator<unsigned char>' and 'long int')
>  3873 |                       return __first + ((const char*)__p1 - (const
> char*)__p0);
>       |                             
> ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Yes, it seems std:: version dies not check contiguous iterator.

Reply via email to