Compilation freezes computer

Andrey saasecondbox at yandex.ru
Fri Dec 11 08:34:41 UTC 2020


Hello,
The code:
> import std.algorithm.searching;
> import std.stdio;
> import std.meta;
> import std.algorithm.sorting : sort;
> 
> void main()
> {
>     static immutable test = [
> 		"ια"w, "ιά", "ιο", "ιό", "ιε", "ιέ", "ιυ", "ιύ", "ιι", "ιί", 
> "ιω", "ιώ", "ιϊ", "ιΐ", "ιϋ", "ιΰ", "ιη", "ιή", "ιου", "ιού", 
> "ιοι", "ιοί", "ιει", "ιεί", "ιαι", "ιαί", "ιυι", "ιυί",
> 		"ηα", "ηά", "ηο", "ηό", "ηε", "ηέ", "ηυ", "ηύ", "ηι", "ηί", 
> "ηω", "ηώ", "ηϊ", "ηΐ", "ηϋ", "ηΰ", "ηη", "ηή", "ηου", "ηού", 
> "ηοι", "ηοί", "ηει", "ηεί", "ηαι", "ηαί", "ηυι", "ηυί",
> 		"υα", "υά", "υο", "υό", "υε", "υέ", "υυ", "υύ", "υι", "υί", 
> "υω", "υώ", "υϊ", "υΐ", "υϋ", "υΰ", "υη", "υή", "υου", "υού", 
> "υοι", "υοί", "υει", "υεί", "υαι", "υαί", "υυι", "υυί"
> 	].sort!`a.length > b.length`().release();
> 
>     auto qaz = "οιιοιιοιιεεεείί"w.endsWith(aliasSeqOf!test);
> 
>     qaz.writeln;
> }

When I try to build it on Windows 10, LDC begins to eat a lot of 
memory (load ~ 95 - 100%) and after some time Windows freezes - 
hard reboot is needed to reset.

On run.dlang.io I get "server error".

My LDC: 1.24.0-beta1 (DMD v2.094.0, LLVM 11.0.0)


More information about the digitalmars-d-ldc mailing list