[Issue 6189] [64bit] optimizer: register content destroyed in function prolog
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 21 06:12:40 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6189
--- Comment #9 from Don <clugdbug at yahoo.com.au> 2012-05-21 06:14:16 PDT ---
Reduced test case (compile with -m64 -O):
void bug6189(int half, int[2] pos, float[3] *pts, int unused)
{
pos[0] += half;
(*pts)[0] = pos[0];
(*pts)[1] = pos[1];
(*pts)[2] = half;
}
void main()
{
int[2] pos = [2,2];
float[3] pts = [0.0, 0.0, 0.0];
bug6189(0, pos, &pts, 0);
assert(pts[0] == 2);
}
--
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