www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8482] New: RefCounted fails on opAssign

reply d-bugmail puremagic.com writes:
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



----
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: -------
Jul 31 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8482


monarchdodra gmail.com changed:

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



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: -------
Jul 31 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8482


monarchdodra gmail.com changed:

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



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: -------
Sep 10 2012