Bug 23329 – Creating objects with a nested class from its sibling function segfaults the compiler

Status
NEW
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-09-07T12:41:54Z
Last change time
2024-12-13T19:24:25Z
Assigned to
No Owner
Creator
null
Moved to GitHub: dmd#20146 →

Attachments

IDFilenameSummaryContent-TypeSize
18580001-fix.patchproposed fixtext/plain3091

Comments

Comment #0 by 475shift — 2022-09-07T12:41:54Z
Created attachment 1858 proposed fix Code: class A { void fun() { new B.D; } class B { class D { } } } Originally discovered by author of: https://github.com/ZILtoid1991/newxml
Comment #1 by robert.schadek — 2024-12-13T19:24:25Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20146 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB