Small lambda instantiation tweak.
authorJason Merrill <jason@redhat.com>
Sat, 15 Dec 2018 22:10:18 +0000 (17:10 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 15 Dec 2018 22:10:18 +0000 (17:10 -0500)
commit54d04ce91ae8e6a2d647200f9443556e6fadc9e2
tree6ea880a1eb31c5cbfb7eea13dac3082a4fe1737d
parentf714ecf522782f76d7d9d9826fe1bcd23259cf24
Small lambda instantiation tweak.

While looking at something else I noticed that we were passing 0 to the
"nonclass" parameter here; we might as well pass 1, since capture proxies
are always at block scope.

* pt.c (tsubst_expr) [DECL_EXPR]: Ignore class-scope bindings when
looking up a capture proxy.

From-SVN: r267176
gcc/cp/ChangeLog
gcc/cp/pt.c