# HG changeset patch # User thomask # Date 1175790945 0 # Node ID 86c8a8d4694b5035f9cc4fda9e7633ef4334650c # Parent 0767a3cee5f2aecc3d6e69d6ab77b59d2e6d7eff [Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang Nick Atamas 2007-02-04 http://d.puremagic.com/issues/show_bug.cgi?id=929 diff -r 0767a3cee5f2 -r 86c8a8d4694b reporter.txt --- a/reporter.txt Thu Apr 05 16:35:18 2007 +0000 +++ b/reporter.txt Thu Apr 05 16:35:45 2007 +0000 @@ -123,6 +123,7 @@ ndove http://www.dsource.org/forums/profile.php?mode=viewprofile&u=142 Neil Santos Nick +Nick Atamas Nick Sabalausky Oskar Linde , Patrick Down diff -r 0767a3cee5f2 -r 86c8a8d4694b run/l/length_10_A.d --- a/run/l/length_10_A.d Thu Apr 05 16:35:18 2007 +0000 +++ b/run/l/length_10_A.d Thu Apr 05 16:35:45 2007 +0000 @@ -2,23 +2,17 @@ // $Date$ // $Author$ -// @author@ -// @date@ 2006-05-02 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=123 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1031 +// @author@ Nick Atamas +// @date@ 2007-02-04 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=929 +// @desc@ [Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang module dstress.run.l.length_10_A; -size_t intRes(){ - return 4; -} - -static const char[] foo = "abc123"; - int main(){ - char c = foo[intRes() % $]; - - if(c != '2'){ + uint[char[]][] fractal; + fractal.length = 10; + if(10 != fractal.length){ assert(0); } diff -r 0767a3cee5f2 -r 86c8a8d4694b run/l/length_10_B.d --- a/run/l/length_10_B.d Thu Apr 05 16:35:18 2007 +0000 +++ b/run/l/length_10_B.d Thu Apr 05 16:35:45 2007 +0000 @@ -2,23 +2,16 @@ // $Date$ // $Author$ -// @author@ -// @date@ 2006-05-02 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=123 -// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1031 +// @author@ Nick Atamas +// @date@ 2007-02-04 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=929 +// @desc@ [Issue 929] Resizing array of associative arrays (uint[char[]][]) causes infinite loop / hang module dstress.run.l.length_10_B; -size_t intRes(){ - return 4; -} - -const char[] foo = "abc123"; - int main(){ - char c = foo[intRes() % $]; - - if(c != '2'){ + uint[char[]][10] fractal; + if(10 != fractal.length){ assert(0); }