This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53382] incorrect associativity in expressions
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 May 2012 23:12:02 +0000
- Subject: [Bug c/53382] incorrect associativity in expressions
- Auto-submitted: auto-generated
- References: <bug-53382-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53382
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 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 order of evaluation is different from associativity.