PR c++/81525 - broken handling of auto in generic lambda.
authorJason Merrill <jason@redhat.com>
Wed, 4 Oct 2017 15:37:09 +0000 (11:37 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 4 Oct 2017 15:37:09 +0000 (11:37 -0400)
commit6411847fcf9941ef7312911378839cc8f45e8d9a
treeee55bf31da00b85e990bd757ee4278c212071c77
parent8139a48e67ec9f178904d2bb83a17bd37ce8fb54
PR c++/81525 - broken handling of auto in generic lambda.

* pt.c (tsubst_decl) [VAR_DECL]: Use strip_innermost_template_args.

From-SVN: r253414
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-auto1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4.C
gcc/testsuite/g++.dg/cpp1y/lambda-generic-const4a.C [new file with mode: 0644]