re PR c++/85194 (ICE with structured binding in broken for-loop)
authorJakub Jelinek <jakub@redhat.com>
Mon, 9 Apr 2018 19:48:48 +0000 (21:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 9 Apr 2018 19:48:48 +0000 (21:48 +0200)
commit6e4f1148ce233f2533d56ab20dc002dc1e9a83d7
treefaae88665bf0190c1852a3b6d54031e3d88922f6
parent78c3f9becd0e7d918806735d721961afd865d1df
re PR c++/85194 (ICE with structured binding in broken for-loop)

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.

From-SVN: r259252
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp43.C [new file with mode: 0644]