January 07, 2016 [Issue 15524] New: [REG2.069] 64bit app with anon-class crashes in contract | ||||
|---|---|---|---|---|
| ||||
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@puremagic.com Reporter: jiki@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; --------------------------------- -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply