https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110427
Bug ID: 110427 Summary: a<a-- will be satisfied in gcc 9 and gcc 11 Product: gcc Version: 9.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: qurong at ios dot ac.cn Target Milestone: --- The output of the following c program is 1 in gcc while it is -1 in clang, Maybe -1 is the expected output for this program. #include <stdio.h> int main() { int a = 0; if (a < a--) { a = 1; } printf("%d\n", a); return 0; }