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





------- Comment #1 from ge...@iki.fi  2009-03-05 08:28 -------
(In reply to comment #0)
> void main(string[] args)
> {
>     foreach (line; stdin.byLine())
>     {
          printf(); // Same output as original post.
>     }
> }
> 
> Segfaults the compiler. Output is:
> 
> dmd segtest.d 
> segtest.d(3): Error: undefined identifier stdin
> segtest.d(3): Error: undefined identifier stdin
> segtest.d(3): Error: no property 'byLine' for type 'int'
> segtest.d(3): Error: function expected before (), not 1 of type int
> segtest.d(3): Error: foreach: int is not an aggregate type
> Segmentation fault
> 
> Tested with both 2.025 and 2.026.
> 


-- 

Reply via email to