[Issue 9258] opAssign with base class triggers "identity assignment operator overload" error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 21 20:10:55 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9258


siegelords_abode at yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #4 from siegelords_abode at yahoo.com 2013-02-21 20:10:52 PST ---
Turns out this fix is incomplete. This code is still broken:

class B
{
}

class A : B
{
    alias set opAssign;

    void set(B a)
    {
    }
}

and it throws an ICE:

dmd: clone.c:35: FuncDeclaration*
AggregateDeclaration::hasIdentityOpAssign(Scope*, Dsymbol*): Assertion
`assign->ident == Id::assign' failed.

This is actually the closer to the original code that had the bug... shows me
right to try to reduce the code... I get a reduced fix!

-- 
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