[Issue 21438] New: Compiler segfault on static array in a struct at CTFE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 30 15:20:40 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21438
Issue ID: 21438
Summary: Compiler segfault on static array in a struct at CTFE
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: CTFE, ice, ice-on-valid-code
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: maxsamukha at gmail.com
dmd segfaults when compiling this code:
int genGBPLookup() {
static struct Table {
int[1] entries;
}
auto table = new Table;
auto x = table.entries[0];
return 0;
}
enum x = genGBPLookup;
void main() {
}
--
More information about the Digitalmars-d-bugs
mailing list