Re: Cleanups of TARGET_EXPR

2006-01-15 Thread Mark Mitchell
Zdenek Dvorak wrote: > umm... OK. Could you please provide an example (that could perhaps also > be added to documentation) of how TARGET_EXPRs are used, that would > explain the rationale behind this semantics? The canonical example is: struct S { S(); S(const S&); }; S f(); vo

Re: Cleanups of TARGET_EXPR

2006-01-15 Thread Zdenek Dvorak
Hello, > > what exactly is the semantics of the cleanup for TARGET_EXPR? > > Documentation says: > > > > > >>Often, a @code{TARGET_EXPR} occurs on the right-hand side of an > >>assignment, or as the second operand to a comma-expression which is > >>itself the right-hand side of an assignment, et

Re: Cleanups of TARGET_EXPR

2006-01-15 Thread Mark Mitchell
Zdenek Dvorak wrote: > Hello, > > what exactly is the semantics of the cleanup for TARGET_EXPR? > Documentation says: > > >>Often, a @code{TARGET_EXPR} occurs on the right-hand side of an >>assignment, or as the second operand to a comma-expression which is >>itself the right-hand side of an ass

Cleanups of TARGET_EXPR

2006-01-06 Thread Zdenek Dvorak
Hello, what exactly is the semantics of the cleanup for TARGET_EXPR? Documentation says: > Often, a @code{TARGET_EXPR} occurs on the right-hand side of an > assignment, or as the second operand to a comma-expression which is > itself the right-hand side of an assignment, etc. In this case, we sa