https://issues.dlang.org/show_bug.cgi?id=19931
Issue ID: 19931
Summary: Missing error message when defining postblit, rvalue
constructor and copy constructor
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
This compiles:
struct S {
this(S s) {}
this(ref S s) {}
this(this) {}
}
Commenting out this(this) {} yields the error message 'struct S may not define
both a rvalue constructor and a copy constructor'. This kind of message should
be there if all three are present, too.
--