https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66771
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- Clang 3.7: /export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage1/build-x86_64-linux-gnux32/bin/clang -c -O2 foo.cc gnu-ivb-1:pts/1[124]> /export/build/gnu/llvm-clang-x32-bootstrap-cmake/stage1/build-x86_64-linux-gnux32/bin/clang -c -O2 foo.cc -std=c++11 foo.cc:6:41: error: invalid operands to binary expression ('__istream_type' (aka 'basic_istream<char, std::char_traits<char> >') and 'int') if (m_input.getline(buf, sizeof(buf)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ 1 error generated.