[Issue 1898] infinite loop when allocate an array of AA
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 20 11:28:49 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1898
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg at iname.com
Status|NEW |RESOLVED
Keywords| |wrong-code
Resolution| |DUPLICATE
------- Comment #2 from smjg at iname.com 2008-11-20 13:28 -------
As for your second question, I'm not sure that there's a general way. But
mapsp = (new int[int][1]).ptr;
should work once the underlying bug is fixed. Meanwhile, a workaround is
int[int][1] mapsa;
mapsp = mapsa.dup.ptr;
But since the main bug you're reporting has already been reported and voted on,
I'm marking this as a dupe.
*** This bug has been marked as a duplicate of 929 ***
--
More information about the Digitalmars-d-bugs
mailing list