digitalmars.D.bugs - [Issue 22292] New: REG[2.084.1] Recursive class literal segfaults
- d-bugmail puremagic.com (30/30) Sep 09 2021 https://issues.dlang.org/show_bug.cgi?id=22292
https://issues.dlang.org/show_bug.cgi?id=22292 Issue ID: 22292 Summary: REG[2.084.1] Recursive class literal segfaults compiler Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: uplink.coder gmail.com The following code segfaults the compiler. class C1 { C1 c1; this () pure { c1 = this; } } immutable x = cast(immutable)r; auto r() { C1 c1 = new C1; return c1; } --
Sep 09 2021