[Issue 4169] New: building dmd with a modern gcc produces a buggy compiler
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 9 19:19:54 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4169
Summary: building dmd with a modern gcc produces a buggy
compiler
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: braddr at puremagic.com
--- Comment #0 from Brad Roberts <braddr at puremagic.com> 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++)
assert(isnan(f[i]));
}
int main()
{
foo();
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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list