November 30, 2020 [Issue 21438] New: Compiler segfault on static array in a struct at CTFE | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: maxsamukha@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() { } -- |
Copyright © 1999-2021 by the D Language Foundation