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]

Re: statement expressions and extended asm bug?


On Mon, 15 Mar 2004, Jamie Lokier wrote:

>     function(foo(arg1), foo(arg2));
> 
> could evaluate the two calls to foo() in either order, but it must
> finish one completely before the other.
> 
> Perhaps this is a flaw in GCC's implementation of
> statement-expression, because s-e is intended for use in macros
> function-like macros -- whose callers don't know they are calling a
> macro.

We've never established the sequence point rules for statement
expressions, but I previously noted
<http://gcc.gnu.org/ml/gcc/2003-07/msg01461.html> the case for having them
follow the non-overlapping rule for function calls, especially given that
inline functions get internally expanded into statement expressions.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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