PR c++/81525 - wrong constant value with generic lambda
authorJason Merrill <jason@redhat.com>
Wed, 9 Aug 2017 19:21:49 +0000 (15:21 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 9 Aug 2017 19:21:49 +0000 (15:21 -0400)
commit233608bdb134b136c5379c76102368d29d022c52
treea18c21a01aaf9a0f12dd195512e3fcffa8d81167
parent50a87c1c0c72bc5d238e4e5a7fa93671c0ba4702
PR c++/81525 - wrong constant value with generic lambda

* pt.c (tsubst_decl) [VAR_DECL]: Avoid clobbering auto.
(tsubst_copy) [VAR_DECL]: Handle auto.

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