[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 22:36:50 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9258
--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-21 22:36:48 PST ---
(In reply to comment #4)
> 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!
https://github.com/D-Programming-Language/dmd/pull/1682
--
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