[Bug c/44918] Calculation on y = x++ + x++ depends on following statements

2010-07-12 Thread eric dot liu at uniquesoft dot com
--- Comment #3 from eric dot liu at uniquesoft dot com 2010-07-12 09:49 --- Refer to my previous comment, I need to reopen it for a correct answer. -- eric dot liu at uniquesoft dot com changed: What|Removed |Added

[Bug c/44918] Calculation on y = x++ + x++ depends on following statements

2010-07-12 Thread eric dot liu at uniquesoft dot com
--- Comment #2 from eric dot liu at uniquesoft dot com 2010-07-12 09:34 --- I don't understand what is sequence point. But as a user, I DO want gcc to produce the same result. As for the code in the bug description, the result is: x = 2, y = 2 *p = 30 If comment out the code indi

[Bug c/44918] New: Calculation on y = x++ + x++ depends on following statements

2010-07-12 Thread eric dot liu at uniquesoft dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eric dot liu at uniquesoft dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44918