[Issue 23339] Internal Compiler Error with extern(C++) class declared in function template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 17 12:43:26 UTC 2022


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

--- Comment #3 from naydef <naydef at abv.bg> ---
Adding 'static' to class Delegate does not change anything(suggested by Adam)

-------------------------------------------------
auto HookVFunc(T)(T)
{
    extern(C++) static class Delegate
    {
        void dd() {}
    }
}


class SamplePlugin
{
    void Load()
    {
        HookVFunc(&GameFrame);
    }

    void GameFrame()
    {
    }
}

--


More information about the Digitalmars-d-bugs mailing list