[Issue 9568] [64bit] wrong code for ref parameter and scope(success)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 22 01:33:14 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9568
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2013-02-22 01:33:13 PST ---
Slightly clearer test case, which works unaltered on D1 as well. It is
necessary for both x and y to be passed as parameters (this was happening with
x==y in my first test case, which was making a call to the runtime).
------
void use9568(char [] m, char [] p) {}
int bug9568(ref char[] x)
{
char[] y = x;
scope (success)
use9568(x,y);
return 7;
}
void main()
{
char[] e = null;
assert( bug9568(e) == 7 );
}
--
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