[Issue 12774] New: REG(2.066) ICE(optimize.c) Newing struct containing union causes segfault
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 20 04:53:21 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12774
Issue ID: 12774
Summary: REG(2.066) ICE(optimize.c) Newing struct containing
union causes segfault
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ice
Severity: regression
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: yebblies at gmail.com
CC: k.hara.pg at gmail.com
struct HasUnion
{
union
{
int a, b;
}
}
void main()
{
auto x = new HasUnion();
}
This segfaults when trying to optimize `new HasUnion()`, which has been
expanded to `new HasUnion(0, )` with the second argument being NULL in the ast.
--
More information about the Digitalmars-d-bugs
mailing list