[Bug c/53382] incorrect associativity in expressions

2012-05-17 Thread miguel.barao at gmail dot com
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

[Bug c/53382] incorrect associativity in expressions

2012-05-16 Thread pinskia at gcc dot gnu.org
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

[Bug c/53382] incorrect associativity in expressions

2012-05-16 Thread pinskia at gcc dot gnu.org
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 .

[Bug c/53382] incorrect associativity in expressions

2012-05-16 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53382 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|