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
[embind] Using EMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0
fails with polymorphic types
#21619
Comments
@dnfield it seems like the assumption of #10914 is that all cases should work find without RTTI. If that is true why do we have the rtti mode still? Why not default to not However, based on the above failure, I'm not sure this assumption is true. |
CC @chadaustin |
sbc100
added a commit
to sbc100/emscripten
that referenced
this issue
Mar 26, 2024
Automatic downcasting of polymorphic types in embind has been broken without rtti since emscripten-core#10914 landed. This test update confirms this brokenness rather than fixing it since this as has been the behavior since 2020. Fixes: emscripten-core#21619
sbc100
added a commit
to sbc100/emscripten
that referenced
this issue
Mar 26, 2024
Automatic downcasting of polymorphic types in embind has been broken without rtti since emscripten-core#10914 landed. This test update confirms this brokenness rather than fixing it since this has been the behavior since 2020. Fixes: emscripten-core#21619
sbc100
added a commit
to sbc100/emscripten
that referenced
this issue
Mar 27, 2024
Automatic downcasting of polymorphic types in embind has been broken without rtti since emscripten-core#10914 landed. This test update confirms this brokenness rather than fixing it since this has been the behavior since 2020. Fixes: emscripten-core#21619
sbc100
added a commit
to sbc100/emscripten
that referenced
this issue
Mar 27, 2024
Automatic downcasting of polymorphic types in embind has been broken without rtti since emscripten-core#10914 landed. This test update confirms this brokenness rather than fixing it since this has been the behavior since 2020. Fixes: emscripten-core#21619
sbc100
added a commit
to sbc100/emscripten
that referenced
this issue
Mar 27, 2024
Automatic downcasting of polymorphic types in embind has been broken without rtti since emscripten-core#10914 landed. This test update confirms this brokenness rather than fixing it since this has been the behavior since 2020. Fixes: emscripten-core#21619
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
EMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0
feature seems to not work with polymorphic types.Adding a flavor of
other.test_embind
that builds withEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0
causes the test to fail with:I believe this is because
getLightTypeID()
is able to inspect the type of a value whenEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES
is enabled but other wise it only looks at the typeT
and not thevalue
:emscripten/system/include/emscripten/wire.h
Lines 85 to 95 in d99707c
The text was updated successfully, but these errors were encountered: