PR c++/84091 - ICE with local class in lambda in template.
authorJason Merrill <jason@redhat.com>
Tue, 30 Jan 2018 20:01:36 +0000 (15:01 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 30 Jan 2018 20:01:36 +0000 (15:01 -0500)
commitb1c7b29a3cae7dcf652cc3e3f971ec010153d814
treec9a38c49787858118e4d7cf09bd1e94269d7829f
parent8d79f003d366e17bb17a4b0a7aab01fea51ffa71
PR c++/84091 - ICE with local class in lambda in template.

* decl2.c (determine_visibility): Look for outer containing template
instantiation.

From-SVN: r257202
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-local1.C [new file with mode: 0644]