D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7427 - Cannot use templated opAssign when there is a member whose type has a postblit.
Summary: Cannot use templated opAssign when there is a member whose type has a postblit.
Status: RESOLVED DUPLICATE of issue 4424
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-02 12:35 UTC by kennytm
Modified: 2012-02-06 12:39 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kennytm 2012-02-02 12:35:55 UTC
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 kennytm 2012-02-06 12:39:40 UTC

*** This issue has been marked as a duplicate of issue 4424 ***