Bug 14254 – Append to upvalue in destructor segfaults when struct is CT-initialized

Status
NEW
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-03-07T18:54:06Z
Last change time
2024-12-13T18:40:56Z
Assigned to
No Owner
Creator
Jakob Ovrum
Moved to GitHub: dmd#18952 →

Comments

Comment #0 by jakobovrum — 2015-03-07T18:54:06Z
The following segfaults in _d_arrayappendcTX: --- unittest { int[] upvalue; struct S { ~this() { upvalue ~= 0; // segfault } } struct Outer { S s2 = S(); } { Outer outer; } // destructor called here } --- I guess either this code is accepts-invalid or some other bug.
Comment #1 by robert.schadek — 2024-12-13T18:40:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18952 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB