[Issue 23233] New: Compiler hangs when current static array limit reaches the edge
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 8 08:30:54 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23233
Issue ID: 23233
Summary: Compiler hangs when current static array limit reaches
the edge
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: contact at lsferreira.net
The following code hangs the compiler with either a segmentation fault or a
linker relocation error on a unrelated PC relative address symbol. I can't
reproduce the segmentation fault locally, but both run.dlang.io and godbolt.org
seem to hang with a segmentation fault.
```
struct S {
ubyte[int.max - 1] value;
}
void main() {}
```
--
More information about the Digitalmars-d-bugs
mailing list