This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78337] "internal compiler error: Segmentation fault", using local variable in lambda return-type deduction
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jan 2017 21:44:13 +0000
- Subject: [Bug c++/78337] "internal compiler error: Segmentation fault", using local variable in lambda return-type deduction
- Auto-submitted: auto-generated
- References: <bug-78337-4@http.gcc.gnu.org/bugzilla/>
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