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++/78337] "internal compiler error: Segmentation fault", using local variable in lambda return-type deduction


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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Jan 11 21:43:42 2017
New Revision: 244340

URL: https://gcc.gnu.org/viewcvs?rev=244340&root=gcc&view=rev
Log:
        PR c++/78337 - ICE on invalid with generic lambda

        * semantics.c (process_outer_var_ref): Check if containing_function
        is null.  Move inform call under complain test.

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