This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/79420] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu: in tsubst_copy, at cp/pt.c:14573


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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Feb 14 17:33:21 2017
New Revision: 245440

URL: https://gcc.gnu.org/viewcvs?rev=245440&root=gcc&view=rev
Log:
        PR c++/79420
        PR c++/79463
        * parser.c (cp_parser_postfix_dot_deref_expression): Avoid
        clobbering if the postfix expression isn't an EXPR_P.

        * g++.dg/cpp1y/pr79463.C: New.
        * g++.dg/template/incomplete10.C: New.
        * g++.dg/template/incomplete9.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr79463.C
    trunk/gcc/testsuite/g++.dg/template/incomplete10.C
    trunk/gcc/testsuite/g++.dg/template/incomplete9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]