[Issue 23901] Spurious "Cannot move object [...] with internal pointer"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 7 22:01:24 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23901
--- Comment #5 from mhh <maxhaton at gmail.com> ---
Once again with a .1 release, I cannot reproduce.
// TODO: this assert pulls in half of phobos. we need to work out an
alternative assert strategy.
// static if (!is(T == class) && hasAliasing!T) if (!__ctfe)
// {
// import std.exception : doesPointTo;
// assert(!doesPointTo(source, source) && !hasElaborateMove!T),
// "Cannot move object with internal pointer unless `opPostMove`
is defined.");
// }
>From lifetime.d, are you on an old druntime or something? (This has been
commented out for apparently 4 years).
--
More information about the Digitalmars-d-bugs
mailing list