Bug 22377 – Show location for Windows extern(C++) mangling ICE

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2021-10-10T13:40:15Z
Last change time
2021-10-14T10:21:00Z
Keywords
C++, pull
Assigned to
No Owner
Creator
Tim

Comments

Comment #0 by tim.dlang — 2021-10-10T13:40:15Z
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.
Comment #1 by dlang-bot — 2021-10-10T13:44:21Z
@tim-dlang created dlang/dmd pull request #13151 "fix Issue 22377: Show location for Windows extern(C++) mangling ICE" fixing this issue: - fix Issue 22377: Show location for Windows extern(C++) mangling ICE https://github.com/dlang/dmd/pull/13151
Comment #2 by dlang-bot — 2021-10-14T10:21:00Z
dlang/dmd pull request #13151 "fix Issue 22377: Show location for Windows extern(C++) mangling ICE" was merged into master: - fb676bc60aa12a4068541ce9a53b1a102c63a4e0 by Tim Schendekehl: fix Issue 22377: Show location for Windows extern(C++) mangling ICE https://github.com/dlang/dmd/pull/13151