[Issue 20876] DMD gives out not so helpful compile error

2020-05-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 moonlightsenti...@disroot.org changed: What|Removed |Added CC||moonlightsentinel@disroot.o

[Issue 20876] DMD gives out not so helpful compile error

2020-05-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 kinke changed: What|Removed |Added CC||ki...@gmx.net --- Comment #2 from kinke --- (In rep

[Issue 20876] DMD gives out not so helpful compile error

2020-05-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 --- Comment #3 from moonlightsenti...@disroot.org --- Reduced test case: struct Array { void opSliceAssign(Foo) {} void opSliceAssign(Foo, size_t, size_t) {} } struct Foo { Bar _bar; } struct Bar { version (Bug) this(ref Bar) { }

[Issue 20876] DMD gives out not so helpful compile error

2020-05-28 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 RazvanN changed: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #4 from Razv

[Issue 20876] DMD gives out not so helpful compile error

2020-05-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 --- Comment #5 from moonlightsenti...@disroot.org --- (In reply to RazvanN from comment #4) > The fix in this situation would be to annotate the copy constructor of Bar > with `inout`: this(ref inout(Bar)) inout . That will make the code to > compile.

[Issue 20876] DMD gives out not so helpful compile error

2020-05-29 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 --- Comment #6 from kinke --- (In reply to RazvanN from comment #4) > So, to conclude, by the current language rules the error is correct. > > The fix in this situation would be to annotate the copy constructor of Bar > with `inout`: this(ref inout(

[Issue 20876] DMD gives out not so helpful compile error

2020-06-14 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 --- Comment #7 from Puneet Goel --- *** Issue 20927 has been marked as a duplicate of this issue. *** --

[Issue 20876] DMD gives out not so helpful compile error

2023-02-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=20876 RazvanN changed: What|Removed |Added CC||alphaglosi...@gmail.com --- Comment #8 from Razvan