-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cxx-interop] Remove impl for constexpr members #60154
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
Conversation
@swift-ci please smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks; it is unfortunate that this ended up being complex enough that this seems warranted. Hopefully we can get this implemented soon.
lib/ClangImporter/ImportDecl.cpp
Outdated
} | ||
if (!value) | ||
// For now we don't import constexpr | ||
if (decl->isConstexpr()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should only be static constexpr vars, right? Other vars should work fine (it's just because there's no symbol for static constexpr vars).
@swift-ci please smoke test |
LGTM thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all your patients with this, @Huddie.
* Remove impl for constexpr members * Readd some tets * Only remove import of static constexpr
Currently we only support constexpr members for int and float types. Unfortunately templated constexpr members are more difficult to handle and are causing some issues when importing c++ stdlib on windows msvc.
For now we will drop support for constexpr members in general until we figure out a better approach for importing them