https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87982
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-11-12 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- If we change the literal 0 to something like (int)0 then it can't be used in comparisons with pointers: /home/jwakely/gcc/9/include/c++/9.0.0/bits/stl_algo.h:4449:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 4449 | __niter > (int)0; --__niter, (void) ++__first) | ~~~~~~~~^~~~~~~~