www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17988] New: [ICE] Segfault when using member in map

https://issues.dlang.org/show_bug.cgi?id=17988

          Issue ID: 17988
           Summary: [ICE] Segfault when using member in map
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ovejacuantica gmail.com

import std.stdio, std.range, std.algorithm;
void main (string [] args) {
    int [][] s; 
    auto q = s.front.front;
    s.map!(c => c.map!(a => text(a[0] / q)));
}

Tested with dmd 2.077.0, ldc 1.5.0 doesn't segfault.

--
Nov 17