www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20946] New: Segfault by forward reference and undefined

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

          Issue ID: 20946
           Summary: Segfault by forward reference and undefined identifier
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kntroh gmail.com

dmd 2.092.1 on Linux Mint 19(64-bit), Windows 8 Pro(64-bit)

Segfault after a error message for undefined identifer.

$ cat test.d
class C1 {
    UndefinedType a;
}
typeof(func) f;
void func(C1 ) { }
$ dmd test.d 
test.d(2): Error: undefined identifier UndefinedType
Segmentation fault
$

--
Jun 17