re PR middle-end/42183 (internal compiler error: verify_stmts failed)
authorRichard Guenther <rguenther@suse.de>
Sat, 28 Nov 2009 19:11:22 +0000 (19:11 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 28 Nov 2009 19:11:22 +0000 (19:11 +0000)
commitf1c19648079168df5e3bf8ab7cee3a15f9203dc4
tree94b97fb1416e57dbc696388eb5687ca3e1482c24
parentc750c208706d56fb9b3b8e2badf44ec4b7f37058
re PR middle-end/42183 (internal compiler error: verify_stmts failed)

2009-11-28  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/42183
* tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
address taken.  Merge the addressable state of the NRV
variable and the result instead of copying it.

* g++.dg/torture/pr42183.C: New testcase.

From-SVN: r154728
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr42183.C [new file with mode: 0644]
gcc/tree-nrv.c