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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jun  6 17:48:35 2018
New Revision: 261240

URL: https://gcc.gnu.org/viewcvs?rev=261240&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-8-branch/gcc/testsuite/g++.dg/cpp0x/range-for35.C
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/parser.c

Reply via email to