Bug 23233 – Compiler hangs when current static array limit reaches the edge

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-07-08T08:30:54Z
Last change time
2024-12-13T19:23:46Z
Assigned to
No Owner
Creator
Luís Ferreira
Moved to GitHub: dmd#18116 →

Comments

Comment #0 by contact — 2022-07-08T08:30:54Z
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() {} ```
Comment #1 by robert.schadek — 2024-12-13T19:23:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18116 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB