re PR c++/86669 (Complete object constructor clone omits length for a c++11 braced...
authorJakub Jelinek <jakub@redhat.com>
Fri, 7 Dec 2018 15:20:04 +0000 (16:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 7 Dec 2018 15:20:04 +0000 (16:20 +0100)
commit29f0d7d457668f1a6acd3bd8b9ac67d37315d999
tree42003eabe14eb777579eb4f5ce87ea29bf3abfde
parent26004f51f9cfb83d88d445903933fb8c39a841f1
re PR c++/86669 (Complete object constructor clone omits length for a c++11 braced initialiser)

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: r266893
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]