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
Frontend issue on conditional operator in C #522
Comments
Thanks for reporting - we did take some shortcuts translating statement expressions and if you pair it with conditional operators it may end up here. On the other hand, how did you make source of |
Thank you for the reply. We just downloaded gnu gzip 1.8 and run ./configure
infer -a checkers -- make The default setting of the |
I looked more into the issue and found the problem: clang AST is looking differently when compiled with |
Summary: This is to prevent clang from changing AST to make it more performant and less readable. Reported in #522 + unrelated `refmt` fix Reviewed By: jvillard Differential Revision: D4319731 fbshipit-source-id: 176dfcf
Thanks. It works now in our case. |
I just tested the repro case and it works now, probably because of e366b0d |
Current front-end parses the above example into an incorrect control flow graph, where return node is unreachable from the entry node. This issue was initially observed when compiling
strspn()
withgcc -O2
andclang -O2
as follows.The text was updated successfully, but these errors were encountered: