[Issue 2827] New: Crash compiling a foreach on an invalid class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 9 22:54:15 PDT 2009


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: bugzilla at digitalmars.com
        ReportedBy: unknown at 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]


-- 



More information about the Digitalmars-d-bugs mailing list