Summary: [FreeBSD] real constants are rounded to double
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: FreeBSD
            Status: NEW
          Keywords: patch, wrong-code
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Shin Fujishiro <> 2010-05-15 01:44:46 PDT 
Created an attachment (id=629)
Patch for DMD (svn r487)

This code fails with dmd built on FreeBSD/i386:
static assert(real.max < real.infinity); // fails on FreeBSD
Some static assertions in std.math are blocked by this problem.

There is a bug in GCC on FreeBSD/i386 and long double constants are rounded to
double precision(*).  A workaround is already there in DMD as Port::ldbl_max,
but it seems it's forgotten. :)  The attached patch enables this workaround,
and adds necessary fpsetprec.

[*] freebsd-standards: long double broken on i386?

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to