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]
Other format: [Raw text]

statement expression and sequence point


"Joseph S. Myers" <jsm@polyomino.org.uk> writes:

| On Sun, 20 Jul 2003, Gabriel Dos Reis wrote:
| 
| > statement-expressions are sort of inline functions, and the semantics
| > there just parallel that of ordinary functions.  In fact, there is no
| 
| It might even be convenient to define that they follow the sequence point
| rules of functions (i.e., the execution of two statement expressions do
| not overlap, though the order they are evaluated in may be unspecified).  
| At present the sequence point rules for statement expressions aren't
| documented, but as they are used internally to expand inline functions
| they'd better follow the same rules.

That makes sense to me.  If we all agree on that, I can provide a
documentation patch.

-- Gaby


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