[Issue 5790] "Error: variable result used before set" when -release -inline -O
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 28 10:26:30 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5790
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kennytm at gmail.com
--- Comment #4 from kennytm at gmail.com 2011-03-28 10:23:03 PDT ---
Also reproducible with '-inline -noboundscheck -O'. Should be a backend issue
in gother.c.
--------
struct H {
double a;
int[3] b; // must not be the first member in a struct, and must be an
array with 3 or more members
}
void g(out int[3] t) { // must take 'out' parameter
t[0]=0; // can be any mutating expression
}
void h (H* x) { // or 'out H' or 'ref H'
g(x.b);
}
--
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