--- Comment #4 from Don <> 2010-06-02 08:53:44 PDT ---
(In reply to comment #2)
> Doesn't the optimizer take care of eliminating the unused temporary and copy?

Good question. Maybe it does. It sees:
auto t = e, foo(e), t;
Does it know in general that foo() cannot reach t?

BTW -- should the compiler be allowed to eliminate the temporary, if there's a
postblit? Ie, is it *forced* to perform the rewrite:

(auto t = e, --e, t)

even if the return value is not used? The optimizer certainly couldn't
eliminate it in the general case, but it'd be possible if the front-end is
allowed to elide it.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to