<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - clang++ cannot compile cstdio with -std=c++1y"
href="http://llvm.org/bugs/show_bug.cgi?id=19754">19754</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang++ cannot compile cstdio with -std=c++1y
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++1y
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>grizzly@smit.id.au
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>clang++ cannot compile cstdio with -std=c++1y see below steps to duplicate
$ cat << EOF | clang++ -std=c++1y -x c++ -
<span class="quote">> #include <cstdio>
> EOF</span >
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: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1090716">https://bugzilla.redhat.com/show_bug.cgi?id=1090716</a> 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>