[Issue 15524] New: [REG2.069] 64bit app with anon-class crashes in contract

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jan 6 23:09:07 PST 2016


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

          Issue ID: 15524
           Summary: [REG2.069] 64bit app with anon-class crashes in
                    contract
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: jiki at red.email.ne.jp

This reduced code works in 2.068.2,
but the program crashes in 2.069 and 2.070beta1.
I tested with Win7 64bit.

rdmd -m64 test.d
---------------------------------
void main(string[] args) {
    auto t = new Test();
    t.add("first");
    t.add("second");
}

class Test {
    int[string] infos;

    void add(string key)
    in {
        assert(key !in infos); // @@@ crash here at second
    } 
    body {
        auto item = new class {
            void notCalled() {
                infos[key] = 0; // affects?
            }
        };

        //dummy ~= item; // does not affect
        infos[key] = 0;
    }
}

Object[] dummy;
---------------------------------

--


More information about the Digitalmars-d-bugs mailing list