[Issue 24301] [REG 2.100] Misleading error message when passing non-copyable struct by value in @safe code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 25 22:28:29 UTC 2023


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

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

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

--- Comment #3 from Dlang Bot <dlang-bot at 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

--


More information about the Digitalmars-d-bugs mailing list