]> gcc.gnu.org Git - gcc.git/commit
re PR c++/81258 (ICE on C++1z code with invalid decomposition declaration: in cp_fini...
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Jul 2017 07:38:59 +0000 (09:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Jul 2017 07:38:59 +0000 (09:38 +0200)
commit9fc1fed43a7ea50803a7a95f3d6a6cea2faf0c27
tree66ee4ee692e1ac8a7950aadb39a415afd3485b51
parent6c86bd888ab9a0723b16862961b74bd3e5386356
re PR c++/81258 (ICE on C++1z code with invalid decomposition declaration: in cp_finish_decl, at cp/decl.c:6760)

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.

From-SVN: r249947
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp21.C
gcc/testsuite/g++.dg/cpp1z/decomp30.C [new file with mode: 0644]
This page took 0.057508 seconds and 5 git commands to generate.