[Bug tree-optimization/85929] _GLIBCXX_ASSERTIONS, subscript type mismatch, and std::vector bounds check elimination

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 28 15:29:00 GMT 2018


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

--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> So somehow we need to enhance the code in VRP that registers additional
> asserts to also handle symbolic ranges and thus register not only
> i_4 < count_8 but also (long int) i_4 < _16 in a usable form.

(long int) i_4 < _16 may not hold, _16 could easily be negative.


More information about the Gcc-bugs mailing list