[Bug libstdc++/91357] _GLIBCXX_ASSERTIONS rejects possibly-valid code

2019-08-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91357 --- Comment #2 from Jonathan Wakely --- More specifically: v.operator[](1); /* maybe okay -- forms a pointer one past end */ Not OK. **Dereferences** a past-the end iterator. That's UB. Go to jail. Go directly to jail. Do not pass Go. D

[Bug libstdc++/91357] _GLIBCXX_ASSERTIONS rejects possibly-valid code

2019-08-05 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91357 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---