# HG changeset patch # User Frits van Bommel # Date 1245859262 -7200 # Node ID 391fdb36f2aa768acc0c105c6d650b3ace2827a9 # Parent 7a528017b4c60fc9e1050e68e327f21e3ae8ed56 Be a little less overzealous with arrays of void-initialized typedefs; initialize `new VoidTD[][](2)` and `new VoidTD[][][](2, 3)` (but not `new VoidTD[2][3]`, which is a dynamic array of static arrays of void-initialized typedefs). diff -r 7a528017b4c6 -r 391fdb36f2aa gen/arrays.cpp --- a/gen/arrays.cpp Wed Jun 24 17:14:50 2009 +0200 +++ b/gen/arrays.cpp Wed Jun 24 18:01:02 2009 +0200 @@ -399,9 +399,9 @@ ////////////////////////////////////////////////////////////////////////////////////////// static bool isInitialized(Type* et) { - // Strip array types from element type + // Strip static array types from element type Type* bt = et->toBasetype(); - while (bt->ty == Tsarray || bt->ty == Tarray) { + while (bt->ty == Tsarray) { et = bt->nextOf(); bt = et->toBasetype(); }