www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23339] New: Internal Compiler Error with extern(C++) class


          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

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

class SamplePlugin
    void Load()

    void GameFrame()
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

Sep 17 2022