Skip to content
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

Check whether static asserts actually hold at CIL-time #65

Open
michael-schwarz opened this issue Jan 10, 2022 · 0 comments
Open

Check whether static asserts actually hold at CIL-time #65

michael-schwarz opened this issue Jan 10, 2022 · 0 comments

Comments

@michael-schwarz
Copy link
Member

I'm wondering if maybe we should do constant folding for the static assert expressions. After all, aren't they supposed to be constant-foldable?
It might be useful for catching some CIL bugs or inconsistencies where we fail to meet the static assertions demanded by the code, even when compiling with GCC they succeed. Aren't static assertions exactly for all kinds of sizeof, etc checks?
Because if we don't even pass the static assertions, then it's quite likely that we would end up analyzing code under completely wrong assumptions about certain types, making the results quite bogus.

Originally posted by @sim642 in #62 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant