PR c++/60223 - ICE with T{} in non-deduced context.
authorMarek Polacek <polacek@redhat.com>
Fri, 21 Jun 2019 20:32:06 +0000 (20:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 21 Jun 2019 20:32:06 +0000 (20:32 +0000)
commitfc39d4e18b473b923571614bfd6aed0707f8ac56
tree454dffc76ac7d5c20f6f24ad908ed3280e2a3379
parent4789c23be4e240285c12aecba22fdc6dfd100d11
PR c++/60223 - ICE with T{} in non-deduced context.

* pt.c (unify): Allow COMPOUND_LITERAL_P in a non-deduced context.

* g++.dg/cpp0x/nondeduced1.C: New test.
* g++.dg/cpp0x/nondeduced2.C: New test.
* g++.dg/cpp0x/nondeduced3.C: New test.
* g++.dg/cpp0x/nondeduced4.C: New test.

From-SVN: r272571
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nondeduced1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nondeduced2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nondeduced3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nondeduced4.C [new file with mode: 0644]