| Summary: | math.h fails to compile with -std=c99 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dominik 'Rathann' Mierzejewski <dominik> |
| Component: | glibc | Assignee: | Andreas Schwab <schwab> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | fweimer, jakub, schwab |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-23 19:47:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 740235 *** |
Description of problem: Any code using math.h fails to compile if -std=c99 is specified in CFLAGS at -O1 or higher. Version-Release number of selected component (if applicable): glibc-headers-2.14.90-9.x86_64 How reproducible: Always. Steps to Reproduce: 1. cat > test.c #include <math.h> float foo(float f) { return lrintf(f); } int main(void){ return 0; } 2. gcc -std=c99 -O1 -o test.o -c test.c Actual results: In file included from /usr/include/math.h:416:0, from test.c:1: /usr/include/bits/mathinline.h: In function 'lrintf': /usr/include/bits/mathinline.h:76:26: error: expected ')' before ':' token /usr/include/bits/mathinline.h: In function 'lrint': /usr/include/bits/mathinline.h:85:26: error: expected ')' before ':' token /usr/include/bits/mathinline.h: In function 'llrintf': /usr/include/bits/mathinline.h:94:26: error: expected ')' before ':' token /usr/include/bits/mathinline.h: In function 'llrint': /usr/include/bits/mathinline.h:101:26: error: expected ')' before ':' token Expected results: Code using math.h should compile fine even if using -std=c99.