[Issue 22377] New: Show location for Windows extern(C++) mangling ICE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 10 13:40:15 UTC 2021


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 at puremagic.com
          Reporter: tim.dlang at 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.

--


More information about the Digitalmars-d-bugs mailing list