https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66771
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to H.J. Lu from comment #3) > if (m_input.getline(buf, sizeof(buf)) == 0) > return false; This is not valid in C++11, and was poor style even in C++03. The portable way to write it is: if (m_input.getline(buf, sizeof(buf))) return false;