Comment #0 by coolreader.org — 2014-04-02T23:16:28Z
Created attachment 1342
Source file to reproduce
DMD 2.065 under winXP/32 compiles following example very slow
> dmd main.d
(compliles very slow)
Not reproduced with 64bit compiler on linux
--- main.d --------------------------
module main;
struct Foo // must be struct to reproduce
{
uint foo; // any data can be here
}
struct Bar // must be struct to reproduce
{
// DMD 2.065 hang with 100% CPU load
// works ok if array size is reduced
Foo[0x20000] _array;
// 0x4000 - < 1 second
// 0x8000 - 5 seconds
// 0xC000 - 15 seconds
// 0xE000 - 20 seconds
// 0x10000 - 25 seconds
// 0x20000 - 1:45
}
int main(string[] argv)
{
return 0;
}
---------------------------------------
Comment #1 by andrej.mitrovich — 2014-04-05T08:30:56Z
*** Issue 12525 has been marked as a duplicate of this issue. ***
Comment #2 by dlang-bugzilla — 2014-04-05T08:32:03Z
This is a regression in 2.064.2.
Comment #3 by dlang-bugzilla — 2014-04-05T08:40:29Z