February 24 [Issue 24409] New: DMD crash for CTFE in stompOverlappedFields | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24409 Issue ID: 24409 Summary: DMD crash for CTFE in stompOverlappedFields Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: tim.dlang@t-online.de DMD tries to access a null pointer in stompOverlappedFields for the following code: ``` static struct S { union { int i; long l; } } int f() { S* r = new S(); r.i = 5; return r.i; } enum X = f(); ``` -- |
Copyright © 1999-2021 by the D Language Foundation