www.digitalmars.com         C & C++   DMDScript  

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

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

          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
https://github.com/dlang/dmd/pull/7250.

--
Oct 10 2021