www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22377] New: Show location for Windows extern(C++) mangling ICE


          Issue ID: 22377
           Summary: Show location for Windows extern(C++) mangling ICE
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: tim.dlang t-online.de

As already reported in issue 16575, the following code will result in an ICE:

extern(C++) void foo(string a) {}

The error message does not contain the location for Windows:

Error: Internal Compiler Error: type `string` cannot be mapped to C++

Adding the location would make it easier to find the function.

The same has already been done for other platforms as part of

Oct 10 2021