[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 19:48:21 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24301
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at 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
--
More information about the Digitalmars-d-bugs
mailing list