Bug 1090716
| Summary: | clang cannot compile header <cstdio> with -std=c++1y | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Thynson <lanxingcan> |
| Component: | llvm | Assignee: | Nobody's working on this, feel free to take it <nobody> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | ajax, bos, dmalcolm, grizzly, jv+fedora, petersen, scottt.tw |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-12-26 01:29:00 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
this is a problem on ubuntu as well so it's a clang thing not redhat 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. 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. |
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