This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/66771] [5/6 Regression] -std=c++11 doesn't work


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]