[Issue 3775] New: Compiler segfaults on cast(string) stdin.byLine.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 5 18:36:46 PST 2010
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: nobody at puremagic.com
ReportedBy: blood.of.life at gmail.com
--- Comment #0 from Bernard Helyer <blood.of.life at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list