[Issue 8926] New: post-blit copy constructor conflicts with generic opAssign

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 31 20:55:47 PDT 2012


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 at puremagic.com
        ReportedBy: malteskarupke at web.de


--- Comment #0 from Malte Skarupke <malteskarupke at web.de> 2012-10-31 20:55:46 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: -------


More information about the Digitalmars-d-bugs mailing list