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++/67411] [5/6 Regression] internal compiler error: in tsubst_copy, at cp/pt.c:13473


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

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sun Dec 20 18:38:37 2015
New Revision: 231863

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

        * lambda.c (generic_lambda_fn_p): Split out from...
        (maybe_add_lambda_conv_op): ...here.
        * semantics.c (process_outer_var_ref): Don't defer maybe-constant
        variables in a generic lambda.
        * pt.c (instantiate_non_dependent_or_null): New.
        * init.c (constant_value_1): Use it.
        * cp-tree.h: Declare it and generic_lambda_fn_p.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-generic-const2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/lambda.c
    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]