[Bug c++/81888] [7/8 Regression] Structured bindings stopped working
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81888 --- Comment #4 from Jakub Jelinek --- 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
[Bug c++/81888] [7/8 Regression] Structured bindings stopped working
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81888 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Created attachment 42696 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42696&action=edit gcc8-pr81888.patch Untested fix.
[Bug c++/81888] [7/8 Regression] Structured bindings stopped working
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81888 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Started with my r249947 aka PR81258 fix.
[Bug c++/81888] [7/8 Regression] Structured bindings stopped working
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81888 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Status|UNCONFIRMED |NEW Known to work||7.1.0 Keywords||rejects-valid Last reconfirmed||2017-08-18 Ever confirmed|0 |1 Summary|Structured bindings stopped |[7/8 Regression] Structured |working |bindings stopped working Target Milestone|--- |7.3 Known to fail||7.2.0 --- Comment #1 from Richard Biener --- Confirmed. The feature was new in GCC 7.