[LLVMbugs] [Bug 19754] New: clang++ cannot compile cstdio with -std=c++1y

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 15 02:43:55 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19754

            Bug ID: 19754
           Summary: clang++ cannot compile cstdio with -std=c++1y
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++1y
          Assignee: unassignedclangbugs at nondot.org
          Reporter: grizzly at smit.id.au
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang++ cannot compile cstdio with -std=c++1y see below steps to duplicate 

$ cat << EOF | clang++ -std=c++1y -x c++ -
> #include <cstdio>
> EOF
In file included from <stdin>:1:
/usr/include//c++/4.8/cstdio:120:11: error: no member named 'gets' in the
global namespace
  using ::gets;
        ~~^
1 error generated.


see: https://bugzilla.redhat.com/show_bug.cgi?id=1090716 for more details. 

NB I get this on Ubuntu Trusty Tahr 13.04 so this is not just a redhat problem 

NB you cannot just avoid using cstio as other things such as string use it:

$ cat << EOF | clang++ -std=c++1y -x c++ -
#include <string>
EOF

In file included from <stdin>:1:
In file included from /usr/include//c++/4.8/string:52:
In file included from /usr/include//c++/4.8/bits/basic_string.h:2815:
In file included from /usr/include//c++/4.8/ext/string_conversions.h:43:
/usr/include//c++/4.8/cstdio:120:11: error: no member named 'gets' in the
global namespace
  using ::gets;
        ~~^
1 error generated.

-- 
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/20140515/2ef2cbe1/attachment.html>


More information about the llvm-bugs mailing list