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
iwasm: WASM module load failed: struct or array as field is not supported in constant expr #3410
Comments
I took a look at this case, it's due to the current implement limitation, we don't allow to init the global with references. The #3411 is also due to this limitation. |
Any chance they will be fixed in the foreseeable future? |
We plan to take on that and will try our best to support this syntax, it could be a while through |
@bashor I submitted PR #3447, and now it should be able to run this case successfully in interpreter mode. But it only supports the nested constant initializer expression like |
Steps to reproduce
iwasm
with the following command./iwasm kotlin-wasm-wasi-example-wasm-wasi-prod.wasm
Expected behavior
It should print something like:
Actual behavior
It prints:
The text was updated successfully, but these errors were encountered: