parser.c (cp_parser_initializer_list): Handle C99 .id= and [N]= designated initialize...
authorJason Merrill <jason@redhat.com>
Wed, 20 Jul 2011 18:18:03 +0000 (14:18 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 20 Jul 2011 18:18:03 +0000 (14:18 -0400)
commit458f8a16a14c77d6346bec6eb9d536c4a9977741
tree97794ed16cf329b2e4619ee88fdb2e020628e225
parentcd88bb8c771788c4f3ad2f1be42e99db5e4a90fe
parser.c (cp_parser_initializer_list): Handle C99 .id= and [N]= designated initializer syntax.

* parser.c (cp_parser_initializer_list): Handle C99 .id= and [N]=
designated initializer syntax.
* decl.c (check_array_designated_initializer): Add index parm.
(maybe_deduce_size_from_array_init): Pass it.
(reshape_init_array_1): Likewise.

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