]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/90265 - ICE with generic lambda.
authorMarek Polacek <polacek@redhat.com>
Mon, 6 May 2019 17:08:08 +0000 (17:08 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 6 May 2019 17:08:08 +0000 (17:08 +0000)
commit6b58ebe4e561a5d59c32f1310eb7f8ea8b92bc70
treeea8818f7255192063243c796539fc8a2014dd66b
parentd1d20a924eb35f6a340f58af7a066f04050dd359
PR c++/90265 - ICE with generic lambda.

* pt.c (tsubst_copy_and_build): Use a dedicated variable for the last
element in the vector.

* g++.dg/cpp1y/lambda-generic-90265.C: New test.

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