http://d.puremagic.com/issues/show_bug.cgi?id=9870
Summary: Instruction scheduling error
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Walter Bright <[email protected]> 2013-04-03
13:43:25 PDT ---
The following code from the test suite sdtor.d:
-------------------
struct S20 {
static char[] r;
}
void main() {
assert(S20.r == "");
}
-------------------
Fails on 32 bit linux when compiled with -O. The problem is the XOR EAX,EAX
gets scheduled before another instruction that sets the flags. The problem
exists on all dmd targets.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------