[Bug libstdc++/97232] Iterator category of "std::prev" are not checked

2020-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97232 --- Comment #2 from Jonathan Wakely --- If you compile with -D_GLIBCXX_ASSERTIONS then there is a runtime check: /home/jwakely/gcc/11/include/c++/11.0.0/bits/stl_iterator_base_funcs.h:151: constexpr void std::__advance(_InputIterator&,

[Bug libstdc++/97232] Iterator category of "std::prev" are not checked

2020-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97232 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---