PR c++/81420 - not extending temporary lifetime.
authorJason Merrill <jason@redhat.com>
Wed, 23 May 2018 03:52:56 +0000 (23:52 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 23 May 2018 03:52:56 +0000 (23:52 -0400)
commit3423a64d46de09a8625db4c2ec2b6a1586f40c56
tree1103b7b062ffb9fbd4bd8125e720a5cd594684c5
parent0d2e69cb3c08f44a15415fb264bf438bb8c9707c
PR c++/81420 - not extending temporary lifetime.

* call.c (extend_ref_init_temps_1): Handle ARRAY_REF.
* class.c (build_base_path): Avoid redundant move of an rvalue.

From-SVN: r260563
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/testsuite/g++.dg/cpp0x/temp-extend1.C [new file with mode: 0644]