Thread overview
[Issue 24301] [REG 2.100] Misleading error message when passing non-copyable struct by value in @safe code
Dec 25, 2023
Paul Backus
Dec 25, 2023
Paul Backus
Dec 25, 2023
Dlang Bot
Dec 25, 2023
Dlang Bot
December 25, 2023
https://issues.dlang.org/show_bug.cgi?id=24301

Paul Backus <snarwin+bugzilla@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--
December 25, 2023
https://issues.dlang.org/show_bug.cgi?id=24301

--- Comment #1 from Paul Backus <snarwin+bugzilla@gmail.com> ---
Introduced in this PR:

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

--
December 25, 2023
https://issues.dlang.org/show_bug.cgi?id=24301

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@pbackus created dlang/dmd pull request #15953 "Fix 24301 - Misleading error message when passing non-copyable struct…" fixing this issue:

- Fix 24301 - Misleading error message when passing non-copyable struct by value in @safe code

  If a copy constructor is explicitly marked with @disable, the error
  message should mention that, regardless of whether its attributes are
  allowed in the calling scope.

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

--
December 25, 2023
https://issues.dlang.org/show_bug.cgi?id=24301

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #15953 "Fix 24301 - Misleading error message when passing non-copyable struct…" was merged into master:

- 1f8dc2b365e41d3fdfc20a6be5b439e92c97f3b5 by Paul Backus:
  Fix 24301 - Misleading error message when passing non-copyable struct by
value in @safe code

  If a copy constructor is explicitly marked with @disable, the error
  message should mention that, regardless of whether its attributes are
  allowed in the calling scope.

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

--