-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NativeAOT-LLVM, Wasm] Cannot marshal struct containing an array #2234
Comments
Following #2233, I thought this one might be fixed in 8.0.0-* previews as well, so rechecked, but it still fails, albeit with different error messages:
|
This is supposed to have been fixed with #2220. |
"merged 3 hours ago" love living on the edge 😅 Okay, I'll recheck when that's out. Btw, just to be sure based on the title of the PR alone - Pass structs by reference in accordance with the WASM C ABI - you mean only for structs with >1 field, right? Because structs with 1 field like in my example still need to be passed as their inner value. |
That is correct. I suspect the failure here is because the code used to (explicitly) block any struct arguments for PInvokes. |
Ah I see 8.0.0-alpha.1.23172.1 is already published; just tried and it doesn't crash. |
Minimal repro:
Results in:
The text was updated successfully, but these errors were encountered: