https://llvm.org/bugs/show_bug.cgi?id=31562

            Bug ID: 31562
           Summary: clang -std=c++14 can't parse libstdc++ 4.8's
                    <algorithm>
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

thakis@thakis:~/src/hack/res$ cat test.cc
#include <cstdio>
thakis@thakis:~/src/hack/res$ clang -c test.cc
thakis@thakis:~/src/hack/res$ clang -c test.cc -std=c++11
thakis@thakis:~/src/hack/res$ clang -c test.cc -std=c++14
In file included from test.cc:1:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11:
error: no member named 'gets' in the global namespace
  using ::gets;
        ~~^
1 error generated.


thakis@thakis:~/src/hack/res$ clang --version
clang version 4.0.0 (trunk 289944)
Target: x86_64-unknown-linux-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to