http://d.puremagic.com/issues/show_bug.cgi?id=8482

           Summary: RefCounted fails on opAssign
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: monarchdo...@gmail.com


--- Comment #0 from monarchdo...@gmail.com 2012-07-31 04:11:53 PDT ---
----
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to