[Bug c++/83739] [8 Regression] error: range-based 'for' expression of type 'auto' has incomplete type
nathan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 17 15:40:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83739
--- Comment #9 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Author: nathan
Date: Wed Jan 17 15:39:35 2018
New Revision: 256795
URL: https://gcc.gnu.org/viewcvs?rev=256795&root=gcc&view=rev
Log:
[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.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr83739.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list