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.
Comment #3 by henning — 2013-05-31T07:24:46Z
Works using git head, close?
Comment #4 by k.hara.pg — 2013-10-02T20:46:17Z
Comment #5 by github-bugzilla — 2013-10-05T00:16:59Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5c532cf34c114b8ba9ecacd440aa2e12a311ebdf fix Issue 8361 - [ICE] (eh.c line 316) with struct with dtor in assert https://github.com/D-Programming-Language/dmd/commit/10b704a7d6fe04b597b0c99e537be4960cba270f Merge pull request #2620 from 9rnsr/fix8360 Issue 8360 & 8361 - Destruction of uninitialized temporary struct with assert