Bug 8926 – post-blit copy constructor conflicts with generic opAssign

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-31T20:55:00Z
Last change time
2012-11-03T14:35:27Z
Assigned to
nobody
Creator
malteskarupke

Comments

Comment #0 by malteskarupke — 2012-10-31T20:55:46Z
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)
Comment #1 by k.hara.pg — 2012-11-03T05:34:12Z
*** This issue has been marked as a duplicate of issue 4424 ***
Comment #2 by malteskarupke — 2012-11-03T14:35:27Z
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.