[Bug c++/69218] File input streams states inconsistency

2016-01-10 Thread dmitigr at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69218 --- Comment #4 from Dmitry Igrishin --- (In reply to Jonathan Wakely from comment #2) > This is the correct behaviour required by the C++ standard, your assertion > is incorrect, that is not guaranteed to always be true. > > When reading the las

[Bug c++/69218] File input streams states inconsistency

2016-01-10 Thread dmitigr at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69218 --- Comment #3 from Dmitry Igrishin --- (In reply to Jonathan Wakely from comment #2) > This is the correct behaviour required by the C++ standard, your assertion > is incorrect, that is not guaranteed to always be true. > > When reading the las

[Bug c++/69218] File input streams states inconsistency

2016-01-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69218 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/69218] File input streams states inconsistency

2016-01-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69218 --- Comment #1 from Jonathan Wakely --- Comment on attachment 37296 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37296 The test case and example text file which doesn't ends with the newline character. N.B. it's not useful to upload a ta