GCC's statement expression extension

Per Bothner per@bothner.com
Sat Jul 29 18:00:00 GMT 2000


Mark Mitchell <mark@codesourcery.com> writes:

> That seems like the obvious right answer.  It just doesn't work very
> well for:
> 
>   X x;
>   X f();
> 
>   x = ({ f(); });

What I meant to say was that this should be handled the same as:

X x;
X f();
inline X __tmp1() { return f(); }
x = __tmp1();
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


More information about the Gcc mailing list