[Issue 21936] [REG 2.080.1] Segfault when compiled with -dip1000

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 20 17:58:58 UTC 2021


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

--- Comment #1 from uplink.coder at googlemail.com ---
a crap.

Code example got in wrongly.

struct Handlers {
    void registerType(T)()
    {
        registerConstructors!T;
    }    void registerConstructors(T)()
    {
        constructImplicit!T;
    }
}

auto constructImplicit(T)(T.init.tupleof)
{
}
import std.datetime;
void registerHandlersDateTime(Handlers handlers)
{
        handlers.registerType!MonoTime;
}

--


More information about the Digitalmars-d-bugs mailing list