You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
The text was updated successfully, but these errors were encountered: