[Bug c++/86669] [7/8/9 regression] Complete object constructor clone omits length for a c++11 braced initialiser
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 7 15:20:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86669
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 7 15:20:04 2018
New Revision: 266893
URL: https://gcc.gnu.org/viewcvs?rev=266893&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist105.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist106.C
trunk/gcc/testsuite/g++.dg/other/pr86669.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list