[Bug c++/85194] ICE with structured binding in broken for-loop
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 9 19:49:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85194
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Apr 9 19:48:48 2018
New Revision: 259252
URL: https://gcc.gnu.org/viewcvs?rev=259252&root=gcc&view=rev
Log:
PR c++/85194
* parser.c (cp_parser_simple_declaration): For structured bindings,
if *maybe_range_for_decl is NULL after parsing it, set it to
error_mark_node.
* g++.dg/cpp1z/decomp43.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/decomp43.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list