PR c++/78337 - ICE on invalid with generic lambda
authorJason Merrill <jason@redhat.com>
Wed, 11 Jan 2017 21:43:42 +0000 (16:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 Jan 2017 21:43:42 +0000 (16:43 -0500)
commit91d01bf40a7eec2f0eb5cbbbf9fee2399fa12b46
tree82c146cb83c34e77c0591731d723d63ca785f116
parent73e32c4743fbd0d2c16ea2fb9212540707f3c01a
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.

From-SVN: r244340
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-ice5.C [new file with mode: 0644]