digitalmars.D.bugs - [Issue 19931] New: Missing error message when defining postblit,
- d-bugmail puremagic.com (24/24) Jun 01 2019 https://issues.dlang.org/show_bug.cgi?id=19931
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 puremagic.com Reporter: simen.kjaras 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. --
Jun 01 2019