Bug 8361 – [ICE] (eh.c line 316) with struct with dtor in assert
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-07-08T07:02:00Z
Last change time
2013-10-05T00:17:25Z
Keywords
ice, pull
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2012-07-08T07:02:41Z
Problem found reducing Issue 8360
struct Foo {
string bar = "hello";
~this() {}
}
void main() {
assert(true, Foo().bar);
}
DMD 2.060alpha:
Internal error: eh.c 316
Comment #1 by lovelydear — 2012-12-31T13:06:30Z
Compiles and runs successfully on 2.060 in DPaste (Linux ?)
Comment #2 by bearophile_hugs — 2012-12-31T20:57:54Z
(In reply to comment #1)
> Compiles and runs successfully on 2.060 in DPaste (Linux ?)
I confirm the presence of this problem, on 32bit Windows DMD 2.061alpha.