Bug 11140 – Destructor/postblit bug for struct members

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-29T09:12:00Z
Last change time
2013-09-29T09:18:38Z
Keywords
wrong-code
Assigned to
nobody
Creator
sludwig
See also
http://d.puremagic.com/issues/show_bug.cgi?id=10789

Attachments

IDFilenameSummaryContent-TypeSize
1252bugtest.dTest caseapplication/octet-stream1039

Comments

Comment #0 by sludwig — 2013-09-29T09:12:04Z
The attached program simulates a simple reference counted struct. Compiled with "dmd -unittest" both unit tests fail on current DMD HEAD (2.064 dev). This is similar to http://d.puremagic.com/issues/show_bug.cgi?id=10789 but probably has a different root cause.
Comment #1 by sludwig — 2013-09-29T09:12:33Z
Created attachment 1252 Test case
Comment #2 by sludwig — 2013-09-29T09:18:38Z
Bug in test case - closing.