long compile time question

Dan dbdavidson at yahoo.com
Tue Oct 23 20:50:46 PDT 2012


The following takes nearly three minutes to compile.
The culprit is the line bar ~= B();
What is wrong with this?

Thanks,
Dan
----------------
struct B {
   const size_t SIZE = 1024*64;
   int[SIZE] x;
}

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


More information about the Digitalmars-d-learn mailing list