-
Notifications
You must be signed in to change notification settings - Fork 116
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
Potential problem with anonymous types #88
Comments
Hi @cmr, and thanks for trying Corrode! This isn't a problem with anonymous types, which are handled... adequately... but rather with unions, which aren't implemented yet if you actually try to access or initialize the union's fields. Rust only got support for C-style unions recently and I haven't caught up yet. I'm tracking that in issue #22 and pull request #63, so I'm closing this issue in favor of those. Also, if you could provide minimal test cases for future bugs, that'd be super helpful! You can use C-Reduce to automatically minimize your test cases, or just manually try deleting parts of your input until you figure out which ones are necessary to observe the bug you're trying to report. |
One of my "favorite" corners of C, especially thwarted by libclang's incomplete exposure of it via the C API!
The following code, when corrode'd, complains:
The text was updated successfully, but these errors were encountered: