https://issues.dlang.org/show_bug.cgi?id=23805
Issue ID: 23805
Summary: Runtime segmentation fault when destructor access
function frame
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
```
void main ()
{
size_t destructionCount;
struct CantDestruct {
int value;
~this () { ++destructionCount; }
}
static void test(CantDestruct a) {}
test(CantDestruct.init);
}
```
This crashes with a segfault when running the program.
--