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. From-SVN: r268428
Showing
gcc/testsuite/g++.dg/cpp0x/initlist107.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/initlist108.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/initlist109.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/initlist110.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/initlist111.C
0 → 100644
gcc/testsuite/g++.dg/cpp0x/initlist112.C
0 → 100644
gcc/testsuite/g++.dg/init/ptrfn4.C
0 → 100644
Please
register
or
sign in
to comment