[Bug c++/86060] [6/7/8/9 Regression] g++ ICE at on with "c++03" in tsubst_copy, at cp/pt.c:15459

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 12 19:53:00 GMT 2018


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


More information about the Gcc-bugs mailing list