https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81888
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Nov 27 21:54:25 2017 New Revision: 255180 URL: https://gcc.gnu.org/viewcvs?rev=255180&root=gcc&view=rev Log: PR c++/81888 * parser.c (cp_parser_decomposition_declaration): Reject just BRACE_ENCLOSED_INITIALIZER_P initializers with nelts != 1 rather than all such CONSTRUCTORs, and only if is_direct_init is true. * g++.dg/cpp1z/decomp30.C: Add a test for structured binding with = {} and = { a, a } initializers. * g++.dg/cpp1z/decomp31.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp1z/decomp31.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp1z/decomp30.C