[PR c++/86610] lambda captures in templates

https://gcc.gnu.org/ml/gcc-patches/2019-01/msg00948.html
	PR c++/86610
	* semantics.c (process_outer_var_ref): Only skip dependent types
	in templates.

	PR c++/86610
	* g++.dg/cpp0x/pr86610.C: New.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268016 138bc75d-0d04-0410-961f-82ee72b054a4
4 files changed