https://issues.dlang.org/show_bug.cgi?id=19089
Issue ID: 19089
Summary: Compiler crash for using struct &this
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
The following code segfaults dmd 2.081.0:
struct List {
private List* l;
this(int x) {
l = &this;
}
}
List ls = 0;
void main() {
}
$ dmd --version
DMD64 D Compiler v2.081.0
[...]
$ dmd deneme.d
Segmentation fault <-- HERE
Forum discussion:
https://forum.dlang.org/post/[email protected]
--