Thread overview
[Issue 8482] New: RefCounted fails on opAssign
July 31, 2012
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: nobody@puremagic.com
        ReportedBy: monarchdodra@gmail.com


--- Comment #0 from monarchdodra@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: -------
July 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8482


monarchdodra@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nobody@puremagic.com        |monarchdodra@gmail.com


--- Comment #1 from monarchdodra@gmail.com 2012-07-31 04:12:21 PDT ---
This is being corrected in pull 724 https://github.com/D-Programming-Language/phobos/pull/724

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8482


monarchdodra@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from monarchdodra@gmail.com 2012-09-10 08:45:54 PDT ---
Fixed in https://github.com/D-Programming-Language/phobos/pull/724

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