Bug 3040 – /usr/include/d/std/math.d(1174): number is not representable

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2009-05-31T03:57:00Z
Last change time
2014-04-18T09:17:47Z
Assigned to
nobody
Creator
belitsky.a

Comments

Comment #0 by belitsky.a — 2009-05-31T03:57:48Z
Can't compile any program that imports std.math from phobos. For example: /*main.d*/ import std.math; int main(char[][] args) { return 0; } $ dmd -I/usr/include/d main.d /usr/include/d/std/math.d(1174): number is not representable I'm not sure but probably this caused by glibc 2.10.1.
Comment #1 by clugdbug — 2009-05-31T22:54:25Z
I'm not sure if this is a Phobos bug or a compiler bug -- but if it's a Phobos bug, the compiler should be complaining about it on ALL platforms. Regardless, I've fixed it in Phobos SVN.
Comment #2 by belitsky.a — 2009-06-08T04:32:05Z
Is there public access to your svn repo? If yes please give me it's url. I cannot find any info about it.
Comment #3 by braddr — 2009-06-08T09:06:56Z
Phobos is hosted on dsource in a project by the same name.: http://www.dsource.org/projects/phobos
Comment #4 by belitsky.a — 2009-06-08T10:06:26Z
I've downloaded file root/branches/phobos-1.x/phobos/std/math.d and replaced std/math.d in my installation. Now programs compiles without this problem.
Comment #5 by clugdbug — 2009-09-08T08:57:25Z
Fixed DMD1.046.