[Issue 19931] New: Missing error message when defining postblit, rvalue constructor and copy constructor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 1 21:40:59 UTC 2019
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: nobody at puremagic.com
Reporter: simen.kjaras at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list