Bug 15406 – [ICE] Accessing member of namespace embedded in a struct causes segfault
Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-12-05T00:14:10Z
Last change time
2020-03-21T03:56:33Z
Keywords
ice-on-invalid-code
Assigned to
No Owner
Creator
Meta
Comments
Comment #0 by monkeyworks12 — 2015-12-05T00:14:10Z
The following program causes the compiler to segfault. It compiles successfully if `Test.Name.Space.test` is not accessed.
struct Test
{
extern(C++, Name.Space)
{
enum test = 0;
}
}
void main()
{
assert(Test.Name.Space.test == 0);
}
Comment #1 by petar.p.kirov — 2015-12-05T10:31:56Z