[Issue 21048] New: Segfault by broken overrided method declaration and circular import

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 17 04:08:59 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21048

          Issue ID: 21048
           Summary: Segfault by broken overrided method declaration and
                    circular import
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: kntroh at gmail.com

---
$ 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.

--


More information about the Digitalmars-d-bugs mailing list