PR c++/86147 - wrong capture for template argument.
authorJason Merrill <jason@redhat.com>
Sat, 16 Jun 2018 06:35:53 +0000 (02:35 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 16 Jun 2018 06:35:53 +0000 (02:35 -0400)
commit94aedc1c0e27aca2b473c35172b564520a7a63ee
tree31f92d67260c8bad14fd3f0b39ef7bd2d8a5dcdb
parent29305f6018483963fa79b072cf8e95128f3e2cd8
PR c++/86147 - wrong capture for template argument.

* expr.c (mark_use): Look through NOP_EXPR.

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