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

          Issue ID: 13919
           Summary: typeof(T.init[].front.init) crashes compiler for T =
                    std.container.Array!int
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

Tested with ~master:

---
import std.container;

alias T = Array!int;
pragma(msg, typeof(T.init[].front.init));

/tmp/test.d(5):        called from here:
Array(RefCounted(RefCountedStore(null))).opSlice()
dmd: interpret.c:752: Expression* ctfeInterpret(Expression*): Assertion
`global.errors != olderrors' failed.
zsh: abort (core dumped)  ~/projekte/d/dmd/src/dmd /tmp/test.d

--

Reply via email to