[Issue 24409] New: DMD crash for CTFE in stompOverlappedFields
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 24 19:28:28 UTC 2024
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 at puremagic.com
Reporter: tim.dlang at 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();
```
--
More information about the Digitalmars-d-bugs
mailing list