long compile time question

Manfred Nowak svv1999 at hotmail.com
Wed Oct 24 14:35:22 PDT 2012


Dan wrote:

> The following takes nearly three minutes to compile.

... and this returns immediately:

--------------------------------
struct B {
   const size_t SIZE = 1024*64;
   int[SIZE] x= void; // !!!
}

void main() {
   B[] barr;
   barr ~= B();
}
-------------------------------
- manfred


More information about the Digitalmars-d-learn mailing list