www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8926] New: post-blit copy constructor conflicts with generic opAssign

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8926

           Summary: post-blit copy constructor conflicts with generic
                    opAssign
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: malteskarupke web.de



PDT ---
void main()
{
    struct S
    {
        this(this)
        {
        }
        ref S opAssign(T)(auto ref T other)
        {
            return this;
        }
    }
    S s;
}

This won't compile in DMD 2.060 with the error message:
Error: function hello.main.S.opAssign conflicts with template
hello.main.S.opAssign(T)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 31 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8926


Kenji Hara <k.hara.pg gmail.com> changed:

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



*** This issue has been marked as a duplicate of issue 4424 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 03 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=8926




PDT ---
Sorry for posting a duplicate, but that other bug was closed, so obviously I
couldn't find it. Well the bug still exists, but I guess somebody wrote a patch
somewhere and that means that it will be fixed.

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