Bug 4020 – [ICE][CTFE] struct postblit in CTFE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-03-28T06:32:00Z
Last change time
2015-06-09T05:13:47Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2010-03-28T06:32:30Z
This code crashes the dmd V.2.042: struct Foo { int x; this(this) { x++; } } int bar() { Foo f; f = f; assert(f.x == 1); return 0; } enum _ = bar(); void main() {}
Comment #1 by bugzilla — 2010-04-01T13:54:20Z
changeset 429
Comment #2 by clugdbug — 2010-04-09T13:36:48Z
Fixed DMD 2.043.