Fix designated initializer for anonymous union.
authorJason Merrill <jason@redhat.com>
Fri, 30 Mar 2018 20:08:51 +0000 (16:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 30 Mar 2018 20:08:51 +0000 (16:08 -0400)
commit6d92f13104acabd09f3a2bc6ad41f75bded22771
tree8f18d0dfdaf2760011bb9f0b62e318dfd355f220
parent9d620422f5ba32ae0dc1daf47da5382f876408f5
Fix designated initializer for anonymous union.

* typeck2.c (process_init_constructor_record): Use
init_list_type_node for the CONSTRUCTOR around an anonymous union
designated initializer.

From-SVN: r258982
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/cpp2a/desig9.C [new file with mode: 0644]