Summary: building dmd with a modern gcc produces a buggy
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Brad Roberts <> 2010-05-09 19:19:52 PDT 
modern versions of DMD build with strict alias rules.  Somewhere in DMD the
rules are violated sufficiently to produce a compiler that doesn't work
correctly enough to past the test suite.  A mostly (but possibly not
completely) reduced test case:

import std.math;

void foo()
    float f[1];
    for (int i = 0; i < f.length; i++)

int main()
    return 0;

With dmd as shipped, the test passes.  With dmd build with g++ 4.4, it fails. 
Adding -fno-strict-aliasing to the compilation flags for dmd produces a
compiler that works (at least well enough to pass the above test).

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

Reply via email to