Summary: Compiler crash on heavy std.algorithm use
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2011-02-16 07:39:21 PST ---
The following code crashes the compiler on Windows using the latest beta of
2.052.  It works on 2.051.

import std.algorithm, std.math, std.stdio, std.conv;

// std.datetime isn't used but needs to be imported to reproduce the bug.
import std.datetime;

void invert(double[][] mat) {
    foreach(i, row; mat) {
        double absMax = map!(abs)(row).front;

void readExp() {
    auto handle = File("foo.txt");
    auto lines = handle.byLine();
    auto ls = lines.front().splitter('\t');
    if(!ls.empty) {
        auto floats = map!(to!float)(ls).front;

void main(string[] args) {}

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to