Bug 22292 – REG[2.084.1] Recursive class literal segfaults compiler

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-09T15:59:42Z
Last change time
2021-10-08T07:02:43Z
Keywords
pull
Assigned to
No Owner
Creator
Stefan Koch

Comments

Comment #0 by uplink.coder — 2021-09-09T15:59:42Z
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; }
Comment #1 by dlang-bot — 2021-09-30T01:23:56Z
@BorisCarvajal created dlang/dmd pull request #13109 "Fix Issue 22292 - REG[2.084.1] Recursive class literal segfaults compiler" fixing this issue: - Fix Issue 22292 - REG[2.084.1] Recursive class literal segfaults compiler https://github.com/dlang/dmd/pull/13109
Comment #2 by dlang-bot — 2021-09-30T02:08:52Z
dlang/dmd pull request #13109 "Fix Issue 22292 - REG[2.084.1] Recursive class literal segfaults compiler" was merged into stable: - 88668387a326f15f0ab915503f38788a8239c6d4 by Boris Carvajal: Fix Issue 22292 - REG[2.084.1] Recursive class literal segfaults compiler https://github.com/dlang/dmd/pull/13109
Comment #3 by boris2.9 — 2021-10-06T04:12:36Z
*** Issue 22114 has been marked as a duplicate of this issue. ***
Comment #4 by dlang-bot — 2021-10-06T05:33:48Z
dlang/dmd pull request #13131 "Additional tests for bug 22292" was merged into stable: - 93d28812f150a9f4ce5ef30b12f3deecf42405ea by Boris Carvajal: Additional tests for bug 22292 https://github.com/dlang/dmd/pull/13131
Comment #5 by dlang-bot — 2021-10-08T07:02:43Z
dlang/dmd pull request #13140 "merge stable" was merged into master: - 962f10f55b62f6352f23f0f63cae2a505a607e7a by Boris Carvajal: Fix Issue 22292 - REG[2.084.1] Recursive class literal segfaults compiler - 9bebf886d28d9fb054314d88f170826d3e600521 by Boris Carvajal: Additional tests for bug 22292 https://github.com/dlang/dmd/pull/13140