Skip to content

Rebase 8120: Fix issue 18716: type const(char)[] can not be mapped to C++#11073

Closed
MoonlightSentinel wants to merge 3 commits intodlang:masterfrom
MoonlightSentinel:pr/8120
Closed

Rebase 8120: Fix issue 18716: type const(char)[] can not be mapped to C++#11073
MoonlightSentinel wants to merge 3 commits intodlang:masterfrom
MoonlightSentinel:pr/8120

Conversation

@MoonlightSentinel
Copy link
Contributor

Rebased #8120 and added a runnable_cxx test which passes on Win64 (except a wrong mangling for functions returning a slice).

jacob-carlborg and others added 3 commits April 28, 2020 21:18
D arrays don't have any corresponding type in C++. Instead we mangle
it as a templated struct with the name `__dslice`, i.e.
`struct __dslice(T)`, where `T` is the element type of the array. For
an array of ints it would be mangled as the following type:
`__dslice!int`.
@MoonlightSentinel
Copy link
Contributor Author

There seems to be an ABI issue for g++ ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants