Thread overview
[Issue 23036] Rvalue constructor with default parameter crashes compiler in the presence of a copy constructor
Apr 19, 2022
RazvanN
Apr 19, 2022
RazvanN
Apr 19, 2022
Dlang Bot
Apr 19, 2022
Dlang Bot
April 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23036

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

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

--
April 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23036

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Regression since 2.086.1

--
April 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23036

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #14011 "Fix Issue 23036 - [REG2.086]Rvalue constructor with default parameter…" fixing this issue:

- Fix Issue 23036 - [REG2.086]Rvalue constructor with default parameter crashes compiler in the presence of a copy constructor

https://github.com/dlang/dmd/pull/14011

--
April 19, 2022
https://issues.dlang.org/show_bug.cgi?id=23036

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #14011 "Fix Issue 23036 - [REG2.086]Rvalue constructor with default parameter…" was merged into master:

- 2d9bb00a46284e27042fa30b1e0a82ce16a20fd0 by RazvanN7:
  Fix Issue 23036 - [REG2.086]Rvalue constructor with default parameter crashes
compiler in the presence of a copy constructor

https://github.com/dlang/dmd/pull/14011

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=19931

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=19871

--