[Issue 1914] Array initialisation from const array yeilds memory trample
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 9 02:58:47 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1914
Jason Spashett <jason at spashett.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.030 |1.051
--- Comment #6 from Jason Spashett <jason at spashett.com> 2009-11-09 02:58:45 PST ---
Still present. To restate the bug, here is a unit test, that should not fail:
unittest {
struct A
{
const char[10] i = [0,0,0,0,0,0,0,0,0,0];
char[10] x = i;
int y=5;
}
A a;
assert(a.y==5, "bug #1914 present");
}
--
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