[C++/83739] bogus error tsubsting range for in generic lambda
authorNathan Sidwell <nathan@acm.org>
Wed, 17 Jan 2018 15:39:35 +0000 (15:39 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 17 Jan 2018 15:39:35 +0000 (15:39 +0000)
commitf0fbe57d54af9234f441f1332050ef36d0787653
tree5ef4ecb3766aa95801d7aaca21e21760deb9cd88
parentc6d6367f848cfd8381aba41e035c5e7e873667c5
[C++/83739] bogus error tsubsting range for in generic lambda

https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01554.html
PR c++/83739
* pt.c (tsubst_expr) <case RANGE_FOR_STMT>: Rebuild a range_for if
this not a final instantiation.

PR c++/83739
* g++.dg/cpp1y/pr83739.C: New.

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