PR c++/85136 - ICE with designated init in template.
authorJason Merrill <jason@redhat.com>
Thu, 5 Apr 2018 19:43:39 +0000 (15:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 5 Apr 2018 19:43:39 +0000 (15:43 -0400)
commitd600a0ceb1f768e0f6d3d8dafc0c79430feb03ea
treee0710f52cbb14530fb0d993fed966bdc165b1e95
parent4c1da8ea3e05208b006b1fb926a02fed7df05e5f
PR c++/85136 - ICE with designated init in template.

* decl.c (maybe_deduce_size_from_array_init): Handle dependent
designated initializer.
(check_array_designated_initializer): Update ce->index with the
constant value.

From-SVN: r259152
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/ext/desig11.C [new file with mode: 0644]