www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Freeze when resizing dynamic arrays of associative arrays

reply morrog <billcoder gmail.com> writes:
The follow code freezes:

--------------------------
char[][char[]][] b;

b.length = 100;

--------------------------

I compile with gdc-4.1 (0.25-4.1.2-16ubuntu1)
I've also tried it with a dmd installation, and had the same problem.

Is this a bug in the compiler or am I doing something wrong?

Thank you,
Bill
Apr 14 2008
parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"morrog" <billcoder gmail.com> wrote in message 
news:fu0kcn$2fpe$1 digitalmars.com...
 The follow code freezes:

 --------------------------
 char[][char[]][] b;

 b.length = 100;

 --------------------------

 I compile with gdc-4.1 (0.25-4.1.2-16ubuntu1)
 I've also tried it with a dmd installation, and had the same problem.

 Is this a bug in the compiler or am I doing something wrong?

 Thank you,
 Bill
It's been reported many times, though I can't give you the bugzilla index off the top of my head. It's a bug.
Apr 14 2008