emscripten-core / emscripten-core/emscripten

EM++ error: Unexpected arg0 type ((select unexpected expression type

Open
#13,546 4 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I've got a weird issue coming after the SDK update (I was using the old backend and everything was running fine).

This error appears:

Fatal: Unexpected arg0 type ((select
unexpected expression type
UNREACHABLE executed at /b/s/w/ir/cache/builder/emscripten-releases/binaryen/src/wasm-traversal.h:100!

This is quite weird, because it's not giving me any info and I discovered (using dichotomous method haha) that the culprit "line" was a simply object instantiation (and the constructor is empty too)

s_defaultLoader = new CStandardLoader();

Removing this line, the code compiles... so I tried to change the class entirely, removing interfaces and everything weird inside it... but the error appears again, and it's not even related to that line anymore, but to something else... so this seems to be an unpredictable error, at least for now...

Do you have any suggestions or comments? Any help would be appreciated! Thanks in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.