http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53382
--- Comment #4 from Miguel Barao 2012-05-17
09:42:48 UTC ---
There was a misunderstanding between associativity and operator evaluation
order in the original bugreport.
I now understand that the language does not specify the evaluation order of a
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53382
--- Comment #3 from Andrew Pinski 2012-05-16
23:12:02 UTC ---
Basically C does not specify which order of the two operands of + are evaluated
first so both clang and GCC are correct.
>Since the + associativity is left-to-right
Kinda but the ord
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53382
--- Comment #2 from Andrew Pinski 2012-05-16
23:07:46 UTC ---
See also http://c-faq.com/expr/confused.html .
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53382
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|