February 15, 2023 [Issue 23676] Static foreach hangs compilation for some time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23676 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dkorpel@live.nl --- Comment #8 from Dennis <dkorpel@live.nl> --- Reduced a bit further: ``` void f() { int i; bool g(int I)() { static foreach(j; 0..11) { i++; return g!j(); } } g!0; } ``` The 11 is the number of enum members of Type. The amount of calls to `checkEscapingSiblings` grows exponentially based on the loop length, which is why compilation hangs. -- |
February 15, 2023 [Issue 23676] Static foreach hangs compilation for some time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23676 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> --- @dkorpel created dlang/dmd pull request #14886 "Fix 23676 - Static foreach hangs compilation for some time" fixing this issue: - Fix 23676 - Static foreach hangs compilation for some time https://github.com/dlang/dmd/pull/14886 -- |
February 22, 2023 [Issue 23676] Static foreach hangs compilation for some time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23676 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #14886 "Fix 23676 - Static foreach hangs compilation for some time" was merged into master: - f0b5ce49c72caa6c9393195b46adf32dd503cd92 by Dennis Korpel: Fix 23676 - Static foreach hangs compilation for some time https://github.com/dlang/dmd/pull/14886 -- |
Copyright © 1999-2021 by the D Language Foundation