[Issue 23036] Rvalue constructor with default parameter crashes compiler in the presence of a copy constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 19 05:21:26 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23036

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
struct S
{
    this(ref S) {}
    this(S, int a = 2) {}                                                      
}

void main()
{
    S a;
    S b = a;
}

--


More information about the Digitalmars-d-bugs mailing list