We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Clang at -O1 and above produces the wrong code.
Bisected to 8773c9b, which was committed by @mgudim
Compiler explorer: https://godbolt.org/z/aTKK3Prqs
% cat reduced.c int printf(const char *, ...); int a, b = 7, c; int *d = &c; int e() { return 1 & b; } int main() { char f = -1; *d = a + f == e() + f + f; printf("%d\n", c); } % % clang -O0 reduced.c && ./a.out 1 % clang -O1 reduced.c && ./a.out 0 %
The text was updated successfully, but these errors were encountered:
I will look into this. The offending commit was reverted: #76167
Sorry, something went wrong.
This was fixed in #76531
mgudim
No branches or pull requests
Clang at -O1 and above produces the wrong code.
Bisected to 8773c9b, which was committed by @mgudim
Compiler explorer: https://godbolt.org/z/aTKK3Prqs
The text was updated successfully, but these errors were encountered: