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: nob...@puremagic.com
        ReportedBy: malteskaru...@web.de


--- Comment #0 from Malte Skarupke <malteskaru...@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: -------

Reply via email to