[Bug c++/81258] [7/8 Regression] ICE on C++1z code with invalid decomposition declaration: in cp_finish_decl, at cp/decl.c:6760
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 4 07:39:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81258
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jul 4 07:38:59 2017
New Revision: 249947
URL: https://gcc.gnu.org/viewcvs?rev=249947&root=gcc&view=rev
Log:
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:
trunk/gcc/testsuite/g++.dg/cpp1z/decomp30.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp1z/decomp21.C
More information about the Gcc-bugs
mailing list