[llvm-bugs] [Bug 31562] New: clang -std=c++14 can't parse libstdc++ 4.8's <algorithm>

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 6 07:13:33 PST 2017


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: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

thakis at thakis:~/src/hack/res$ cat test.cc
#include <cstdio>
thakis at thakis:~/src/hack/res$ clang -c test.cc
thakis at thakis:~/src/hack/res$ clang -c test.cc -std=c++11
thakis at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170106/6bead557/attachment.html>


More information about the llvm-bugs mailing list