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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs