[Issue 20715] `Error: TypeInfo cannot be used with -betterC` for array of struct = void with copy constructor disabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 7 00:33:07 UTC 2021


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

Imperatorn <johan_forsberg_86 at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johan_forsberg_86 at hotmail.c
                   |                            |om

--- Comment #1 from Imperatorn <johan_forsberg_86 at hotmail.com> ---
When B is by ref A will have
inout pure nothrow @nogc @safe this(ref inout(A) p)
{
        this.data = p.data;
        return this;
}

B's destructor will not be nogc

--


More information about the Digitalmars-d-bugs mailing list