PR c++/79640 - infinite recursion with generic lambda.
authorJason Merrill <jason@redhat.com>
Mon, 20 Mar 2017 18:49:10 +0000 (14:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 20 Mar 2017 18:49:10 +0000 (14:49 -0400)
commit8afd9c45b6e84193b2fc12a2332191e28cdbdd70
tree5c2706753e33aa0373e9e7fb94bbf729b43745af
parent9f5af26dacc26944d1a9db6e937afc6909d18e48
PR c++/79640 - infinite recursion with generic lambda.

* pt.c (tsubst_copy) [VAR_DECL]: Register the dummy instantiation
before substituting its initializer.

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