Bug 8482 – RefCounted fails on opAssign

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-07-31T04:11:00Z
Last change time
2012-09-10T08:45:54Z
Assigned to
monarchdodra
Creator
monarchdodra

Comments

Comment #0 by monarchdodra — 2012-07-31T04:11:53Z
---- void main() { alias RefCounted!(int, RefCountedAutoInitialize.yes) RCY; alias RefCounted!(int, RefCountedAutoInitialize.no) RCN; RCY a; RCN b; a = 5; //(1) b = 5; //(2) }; ---- (1) will create an "object.Error: Access Violation" => This should actually be a legal call. (2) will create an "object.Error: Access Violation" => Correct behavior but... => Suggest adding an assert for development.
Comment #1 by monarchdodra — 2012-07-31T04:12:21Z
Comment #2 by monarchdodra — 2012-09-10T08:45:54Z