[Issue 14754] New: [REG2.068b1] 64bit wrong code with -inline

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jun 30 20:51:18 PDT 2015


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

          Issue ID: 14754
           Summary: [REG2.068b1] 64bit wrong code with -inline
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp

This program crashed when compiled and run with -m64 -inline.
In 2.067, it works.


-----------------------
import std.algorithm;
import std.array;

auto aafunc(string k)
{
    enum aa = [ "K": "V" ];
    auto p = k in aa;
    return  null;
}

auto mapfun(R)(R words, string k)
{
    return words.map!(s=>aafunc(k)).array;
}

void main()
{
    auto r = [""].mapfun("");
}

--


More information about the Digitalmars-d-bugs mailing list