[Issue 21008] dmd segfaults because of __traits(getMember, ...) and virtual function overriding

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 27 08:05:08 UTC 2022


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
Smaller test case (without templates):

class Base
{
    bool after();

    mixin(handleMiddlewareAnnotation);
}

class C : Base
{
    override bool after();
}

string handleMiddlewareAnnotation()
{
    foreach (member; __traits(allMembers, C))
    {
        __traits(getMember, C, member);
    }
}

--


More information about the Digitalmars-d-bugs mailing list