https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117002

Iain Buclaw <ibuclaw at gdcproject dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject dot org

--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Initial reduction, though @Andrew may have given the needed hint to remove the
class declaration (all D classes have a void** vptr pointing at a vtable array)

---
module object;

extern(C++) class Foo {
    ubyte[4] not_multiple_of_8;
}

int pr117002(void *p)
{
    auto init = __traits(initSymbol, Foo);
    if (init.ptr + init.length <= p)
        return 1;

    return 0;
}

Reply via email to