www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17612] New: [REG2.063] Segmentation fault with bad object.d

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

          Issue ID: 17612
           Summary: [REG2.063] Segmentation fault with bad object.d
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

////// object.d //////
module object;

class Object
{
    string toString();
}

class TypeInfo {}
//////////////////////

$ dmd object.d
object.d(5): Error: undefined identifier 'string'
27160 Segmentation fault      (core dumped) dmd object.d

Introduced in https://github.com/dlang/dmd/pull/1822

--
Jul 06 2017