Bug 1090716 - clang cannot compile header <cstdio> with -std=c++1y
Summary: clang cannot compile header <cstdio> with -std=c++1y
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 20
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nobody's working on this, feel free to take it
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-24 03:14 UTC by Thynson
Modified: 2014-12-26 01:29 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-26 01:29:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Thynson 2014-04-24 03:14:25 UTC
Description of problem:
clang cannot compile standard header <cstdio> with -std=c++1y. Digging into the <cstdio> and <stdio.h>, I found it looks like `gets' has been removed from ISO C11 standard. g++ can compile <cstdio> properly.

Version-Release number of selected component (if applicable):
clang-3.4-6
glibc-2.18


How reproducible:
Always


Steps to Reproduce:

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



Actual results:
In file included from <stdin>:1:
/usr/bin/../lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/cstdio:120:11: error: no member named 'gets' in the
      global namespace
  using ::gets;


Expected results:
Pass compilation

Additional info:
g++ can compile <cstdio> header properly with -std=c++1y

Comment 1 Francis Grizzly Smit 2014-05-15 09:25:35 UTC
this is a problem on ubuntu as well so it's a clang thing not redhat

Comment 2 Adam Jackson 2014-11-19 16:28:29 UTC
Reassign to nobody@.  I have no time and no interest in working on clang, and the only reason it's even in the llvm package is because it can't be built any other way.

If anyone wishes to volunteer for comaintainer with a focus on clang, please let me know (preferably with direct email, if it's in bz I'll likely miss the request), I'll be happy to hook you up.

Comment 3 Jan Včelák 2014-12-26 01:29:00 UTC
Works in F21 (clang-3.5.0-4.fc21.x86_64).

I will close this report as we don't have resources to get the support backported. If you think this is really needed in F20, please, reopen this bug.


Note You need to log in before you can comment on or make changes to this bug.