parser.c (cp_parser_decomposition_declaration): Replace decomposition declaration...
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Jul 2017 07:40:00 +0000 (09:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Jul 2017 07:40:00 +0000 (09:40 +0200)
commit8e3b9bbfc850c53fe92b6015005b20b159adfa60
tree725a3d38cbcc0ce67980d25705255c248f23531a
parent9fc1fed43a7ea50803a7a95f3d6a6cea2faf0c27
parser.c (cp_parser_decomposition_declaration): Replace decomposition declaration with structured binding in diagnostics.

* parser.c (cp_parser_decomposition_declaration): Replace
decomposition declaration with structured binding in diagnostics.
* decl.c (cp_finish_decomp): Likewise.
(grokdeclarator): Likewise.

* g++.dg/cpp1z/decomp1.C: Expect structured binding instead of
decomposition declaration in diagnostics.
* g++.dg/cpp1z/decomp2.C: Likewise.
* g++.dg/cpp1z/decomp3.C: Likewise.
* g++.dg/cpp1z/decomp4.C: Likewise.
* g++.dg/cpp1z/decomp5.C: Likewise.
* g++.dg/cpp1z/decomp6.C: Likewise.
* g++.dg/cpp1z/decomp7.C: Likewise.
* g++.dg/cpp1z/decomp8.C: Likewise.
* g++.dg/cpp1z/decomp13.C: Likewise.
* g++.dg/cpp1z/decomp14.C: Likewise.
* g++.dg/cpp1z/decomp18.C: Likewise.
* g++.dg/cpp1z/decomp19.C: Likewise.
* g++.dg/cpp1z/decomp22.C: Likewise.
* g++.dg/cpp1z/decomp23.C: Likewise.
* g++.dg/cpp1z/decomp24.C: Likewise.
* g++.dg/cpp1z/decomp25.C: Likewise.
* g++.dg/cpp1z/decomp26.C: Likewise.
* g++.dg/cpp1z/decomp28.C: Likewise.

From-SVN: r249948
22 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp1.C
gcc/testsuite/g++.dg/cpp1z/decomp13.C
gcc/testsuite/g++.dg/cpp1z/decomp14.C
gcc/testsuite/g++.dg/cpp1z/decomp18.C
gcc/testsuite/g++.dg/cpp1z/decomp19.C
gcc/testsuite/g++.dg/cpp1z/decomp2.C
gcc/testsuite/g++.dg/cpp1z/decomp22.C
gcc/testsuite/g++.dg/cpp1z/decomp23.C
gcc/testsuite/g++.dg/cpp1z/decomp24.C
gcc/testsuite/g++.dg/cpp1z/decomp25.C
gcc/testsuite/g++.dg/cpp1z/decomp26.C
gcc/testsuite/g++.dg/cpp1z/decomp28.C
gcc/testsuite/g++.dg/cpp1z/decomp3.C
gcc/testsuite/g++.dg/cpp1z/decomp4.C
gcc/testsuite/g++.dg/cpp1z/decomp5.C
gcc/testsuite/g++.dg/cpp1z/decomp6.C
gcc/testsuite/g++.dg/cpp1z/decomp7.C
gcc/testsuite/g++.dg/cpp1z/decomp8.C