https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81258

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jul 17 19:39:23 2017
New Revision: 250286

URL: https://gcc.gnu.org/viewcvs?rev=250286&root=gcc&view=rev
Log:
        Backported from mainline
        2017-07-04  Jakub Jelinek  <ja...@redhat.com>

        PR c++/81258
        * parser.c (cp_parser_decomposition_declaration): Diagnose invalid
        forms of structured binding initializers.

        * g++.dg/cpp1z/decomp21.C (foo): Adjust expected diagnostics.
        * g++.dg/cpp1z/decomp30.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/decomp30.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/parser.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/decomp21.C

Reply via email to