PR c++/86060 - ICE on range for with -std=c++98.
authorJason Merrill <jason@redhat.com>
Wed, 6 Jun 2018 17:47:48 +0000 (13:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 6 Jun 2018 17:47:48 +0000 (13:47 -0400)
commitb66ec0c0324bb43f1fe462e7dc21fc14073d69e6
treecee6d9c255406216aa6ba1b048f7b061b9c167a8
parent4dbdb49b1b07a22e9f216b2ca988e17663b959d3
PR c++/86060 - ICE on range for with -std=c++98.

* parser.c (cp_parser_init_statement): Don't clobber *decl after
pedwarn.

From-SVN: r261239
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/range-for35.C [new file with mode: 0644]