https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86060

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun 12 19:53:02 2018
New Revision: 261523

URL: https://gcc.gnu.org/viewcvs?rev=261523&root=gcc&view=rev
Log:
        PR c++/86060 - ICE on range for with -std=c++98.

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

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/range-for35.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/parser.c
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp0x/range-for9.C

Reply via email to