This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/53382] incorrect associativity in expressions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]