[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
Wed Jun 6 17:50:00 GMT 2018


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


More information about the Gcc-bugs mailing list