re PR c++/16405 (Temporary aggregate copy not elided)
authorMark Mitchell <mark@codesourcery.com>
Thu, 23 Dec 2004 08:14:33 +0000 (08:14 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 23 Dec 2004 08:14:33 +0000 (08:14 +0000)
commitf98625f6a5077fa1554d7ea94016f452b79a00e2
tree53f2733f9b2d5981233b4f403e52b59105601acd
parentad78a663e81b3d549a7e407d10e5755afc50d7c5
re PR c++/16405 (Temporary aggregate copy not elided)

PR c++/16405
* gimplify.c (gimplify_modify_expr_rhs): Handle
INDIRECT_REF/ADDR_EXPR combinations.

PR c++/16405
* g++.dg/opt/temp1.C: New test.

From-SVN: r92539
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/temp1.C [new file with mode: 0644]