← Back to index
|
Original Bugzilla link
Bug 7427 – Cannot use templated opAssign when there is a member whose type has a postblit.
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-02T12:35:00Z
Last change time
2012-02-06T12:39:40Z
Keywords
rejects-valid
Assigned to
nobody
Creator
kennytm
Comments
Comment #0
by kennytm — 2012-02-02T12:35:55Z
Test case: ------------------------------ struct K7427 { this(this) {} } struct S7427 { K7427 x; void opAssign()(int y) {} } ------------------------------ Compile with 'dmd -c test7427.d' gives: test7427.d(7): Error: function test7427.S7427.opAssign conflicts with template test7427.S7427.opAssign() at test7427.d(9)
Comment #1
by kennytm — 2012-02-06T12:39:40Z
*** This issue has been marked as a duplicate of issue 4424 ***