Bug 21048 – Segfault by broken overrided method declaration and circular import

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-07-17T04:08:59Z
Last change time
2023-04-05T10:56:10Z
Assigned to
No Owner
Creator
kntroh

Comments

Comment #0 by kntroh — 2020-07-17T04:08:59Z
--- $ cat a.d module a; import b; interface C { Undefined method(); } $ cat b.d module b; import a; class C2 : C { override method() { } } $ dmd a.d a.d(4): Error: undefined identifier Undefined Segmentation fault $ --- I confirmed on Windows 8.1 and Linux Mint 19.
Comment #1 by razvan.nitu1305 — 2023-04-05T10:56:10Z