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

           Summary: Compiler segfaults on cast(string) stdin.byLine.
           Product: D
           Version: 2.040
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Bernard Helyer <[email protected]> 2010-02-05 
18:36:45 PST ---
Apologies if this is a duplicate, I couldn't see anything *obvious*.

I'm sure this is invalid code, but I got on to doing this (don't ask):

---
module segfault;

import std.stdio;

void main()
{
    foreach (line; cast(string) stdin.byLine) {}
}
---

Which leads to:

---
$ dmd segfault
Segmentation fault
---

Needless to say, no object or executable file is produced.

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

Reply via email to