]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/86669 (Complete object constructor clone omits length for a c...
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 11:20:08 +0000 (13:20 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 11:20:08 +0000 (13:20 +0200)
commit67747d8355aa30d932bb5b432c0d48d8282bb69b
tree4fd6af303bc369fe5310c067c66627d5765f2547
parent19dfbd5380e08645f4cf3d26fa38c7a04e242035
backport: re PR c++/86669 (Complete object constructor clone omits length for a c++11 braced initialiser)

Backported from mainline
2018-12-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/86669
* call.c (make_temporary_var_for_ref_to_temp): Call pushdecl even for
automatic vars.

* g++.dg/cpp0x/initlist105.C: New test.
* g++.dg/cpp0x/initlist106.C: New test.
* g++.dg/other/pr86669.C: New test.

From-SVN: r275078
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist105.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist106.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/pr86669.C [new file with mode: 0644]