Opened 14 years ago
Closed 10 years ago
#7396 closed bug (fixed)
C++ std::isnan, std::isinf not working
Reported by: | Pinaraf | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/libroot.so | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Hi
I tried to compile QJson but compilation failed with a problem when calling std::isnan or std::isinf.
The error message : "expected unqualified-id before '(' token"
I'll send a really simple test code for this bug that works perfectly with g++ 4.3, 4.4 or 4.5 on debian, but fails with g++ 4.4.4 on Haiku.
Attachments (2)
Change History (7)
by , 14 years ago
comment:1 by , 14 years ago
To fix this, we need to implement some C99 macros in math.h (isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered) first and rebuild the toolchain - ticket #7007. After that cmath (gcc4) should contain correct implementation.
comment:3 by , 10 years ago
patch: | 0 → 1 |
---|
comment:4 by , 10 years ago
Hi, I attached a patch but I would like it to be reviewed before I push it.
It doesn't break the gcc2 build, at least, and should fix the issue.
comment:5 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Applied the patch in hrev48391.
Simple not-compiling source code