]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
PR c++/89083, c++/80864 - ICE with list initialization in template.
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2019 20:21:11 +0000 (20:21 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2019 20:21:11 +0000 (20:21 +0000)
commitc8f861a0a80f9cc236f21a28b325abe13db7a5fb
tree61a150f1a13f1a04a1e07e7f0a4d5b6806b740c8
parente739972ad6ad05e32a1dd5c29c0b950a4c4bd576
PR c++/89083, c++/80864 - ICE with list initialization in template.
* constexpr.c (adjust_temp_type): Use copy_node and change the type
instead of using build_constructor.
* decl.c (reshape_init_r): Don't reshape a digested initializer.
Return the initializer for COMPOUND_LITERAL_P.

* g++.dg/cpp0x/initlist107.C: New test.
* g++.dg/cpp0x/initlist108.C: New test.
* g++.dg/cpp0x/initlist109.C: New test.
* g++.dg/cpp0x/initlist110.C: New test.
* g++.dg/cpp0x/initlist111.C: New test.
* g++.dg/cpp0x/initlist112.C: New test.
* g++.dg/init/ptrfn4.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268428 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist107.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist108.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist109.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist110.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist111.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist112.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/ptrfn4.C [new file with mode: 0644]