https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69218
Bug ID: 69218
Summary: File input streams states inconsistency
Product: gcc
Version: 5.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dmitigr at gmail dot com
Target Milestone: ---
Created attachment 37296
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37296&action=edit
The test case and example text file which doesn't ends with the newline
character.
When EOF reached while reading a text file *which doesn't ends with newline
character* the stream's state becomes "not good" and "eof" but remains "not
fail".