re PR debug/46815 (Invalid DW_AT_location for a retval instance of a class that has...
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Dec 2010 17:50:34 +0000 (18:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Dec 2010 17:50:34 +0000 (18:50 +0100)
commit140806fa55ed4c8feaadd1628bb733af777b4faf
treeb7d9f83c3aef0d92603e1259c312c7ef6f7cdf8e
parentdb1792ee3338c4beabbf2ccaacb87c3d810b8309
re PR debug/46815 (Invalid DW_AT_location for a retval instance of a class that has a virtual function)

PR debug/46815
* cp-gimplify.c (cp_genericize): When changing RESULT_DECL
into invisible reference, change also DECL_VALUE_EXPR of
NRV optimized variable.

* g++.dg/guality/pr46815.C: New test.

From-SVN: r167865
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/guality/pr46815.C [new file with mode: 0644]