c++: Fix ICE with omitted template args [PR93956].
authorJason Merrill <jason@redhat.com>
Tue, 10 Mar 2020 21:51:46 +0000 (17:51 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 11 Mar 2020 02:01:03 +0000 (22:01 -0400)
commitdf15a82804e1f7f4a7432670b33387779de46549
treee4d89f1427714fe511865a740196f35e22aac7a9
parent37e0df8a9be5a8232f4ccb73cdadb02121ba523f
c++: Fix ICE with omitted template args [PR93956].

reshape_init only wants to work on BRACE_ENCLOSED_INITIALIZER_P, i.e. raw
initializer lists, and here was getting a CONSTRUCTOR that had already been
processed for type A<int>.  maybe_aggr_guide should also use that test.

gcc/cp/ChangeLog
2020-03-10  Jason Merrill  <jason@redhat.com>

PR c++/93956
* pt.c (maybe_aggr_guide): Check BRACE_ENCLOSED_INITIALIZER_P.
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1z/class-deduction70.C [new file with mode: 0644]