[Issue 10678] Win64: wrong code passing small fixed sized array as function argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 27 13:39:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10678
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2013-07-27 13:39:08 PDT ---
Smaller test case:
int test(char[5] txt)
{
return txt[0] + txt[1] + txt[4];
}
void main()
{
char[5] hello = void;
hello[0] = 8;
hello[1] = 9;
hello[4] = 10;
int i = test(hello);
assert(i == 27);
}
--
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