Bug 15524 – [REG2.069] 64bit app with anon-class crashes in contract
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2016-01-07T07:09:00Z
Last change time
2016-02-24T02:55:27Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
jiki
Comments
Comment #0 by jiki — 2016-01-07T07:09:07Z
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;
---------------------------------