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

           Summary: Crash compiling a foreach on an invalid class
           Product: D
           Version: 2.027
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: unkn...@simplemachines.org


When compiling the following code, DMD crashes (after issuing appropriate
errors):

---
import std.stdio;

void main()
{
        BadClass file;

        foreach (char[] line; file)
                writefln(line);
}
---

Not a huge issue, found when forgetting to import std.stream.  Patch upcoming.

-[Unknown]


-- 

Reply via email to