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++/70634] [4.9/5/6 Regression] ICE on valid code on x86_64-linux-gnu: Segmentation fault (program cc1plus)


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Apr 13 15:02:23 2016
New Revision: 234945

URL: https://gcc.gnu.org/viewcvs?rev=234945&root=gcc&view=rev
Log:
        PR c++/70634

        * pt.c (instantiation_dependent_uneval_expression_p): Split out
        from instantiation_dependent_expression_p.
        (value_dependent_expression_p): Use it for unevaluated operands.
        (instantiation_dependent_r): Don't check value-dependence.
        (instantiation_dependent_expression_p): Check
        value-dependence of the expression as a whole.
        * cp-tree.h: Declare instantiation_dependent_uneval_expression_p.
        * semantics.c (finish_decltype_type): Use it.

Added:
    trunk/gcc/testsuite/g++.dg/template/dependent-expr10.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c

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