http://d.puremagic.com/issues/show_bug.cgi?id=5287

           Summary: (crash mtype.c) on function with default argument
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-11-28 15:38:26 PST ---
This is wrong D2 code:

void foo(Bar* p=null) {}
void main() {
    foo();
}


DMD 2.050 crashes on it:

bug.d(1): Error: identifier 'Bar' is not defined
bug.d(1): Error: Bar is used as a type
Assertion failure: 'tn->mod == MODimmutable' on line 880 in file 'mtype.c'

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to