Summary: Jagged array and init causing DMD to take a LONG time
                    to compile.
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Damian <> 2011-10-05 07:37:37 PDT ---
const MAXX = 40;
const MAXY = 40;

struct MyStruct
   ushort Var1;
   ushort Var2;
   ushort Var3;
   // NOTE: comment out these variables below and it
   // will compile faster..
   ubyte Var4;
   ubyte Var5;
   ubyte Var6;
   ubyte Var7;
   ubyte Var8;
   ubyte Var9;

public class MyClass
   public MyStruct[MAXX * 3][MAXY * 3] MArr;

   public this()
      MArr = MArr.init; // <-- THIS LINE

The above source code will cause the DMD compiler to take a long time to
compile (minutes? hours?). Commenting out the lines suggested will speed the
compilation up enough to see it succeed.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to