September 17, 2022
https://issues.dlang.org/show_bug.cgi?id=23339

          Issue ID: 23339
           Summary: Internal Compiler Error with extern(C++) class
                    declared in function template
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: naydef@abv.bg

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


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

    void GameFrame()
    {
    }
}
----------------------------------
Error:
source/app.d(5,14): Error: Internal Compiler Error: type `void delegate()`
cannot be mapped to C++
----------------------------------
I'm not very sure if this is supposed to be a valid code(I think it is.) Marked as regression, because run.dlang.io indicates compile success up to DMD 2.65.0

--