This is the mail archive of the gcc@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]

Re: GCC's statement expression extension


Anjul Srivastava <anjul.srivastava@sanchez.com> writes:

| It does not have undefined behavior, and will always evaluate to: three plus
| twice the old value of i.

This is getting a bit off-topic: you can't modify more than once an
objet without intervening sequence point and expect a defined
behavior.

But that has nothing to do with the unnecessary headache
statement-expressions are causing when it come to implement standard
functionalities and optimizations.  It is just a distraction brought
in in order to hide the main issue.  Let's not go that road.

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com

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