[Bug c++/86740] [8 Regression] ICE with hana and nested lambdas (likely a regression, tsubst_copy, at cp/pt.c:15325)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86740 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #9 from Jason Merrill --- Fixed for 8.3 as well.
[Bug c++/86740] [8 Regression] ICE with hana and nested lambdas (likely a regression, tsubst_copy, at cp/pt.c:15325)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86740 --- Comment #8 from Jason Merrill --- Author: jason Date: Sun Jan 27 20:31:37 2019 New Revision: 268324 URL: https://gcc.gnu.org/viewcvs?rev=268324=gcc=rev Log: PR c++/86740, ICE with constexpr if and nested generic lambdas. When we partially instantiate the constexpr if, we walk through its body to see what it uses from the enclosing local_specializations. That walk was overlooking the use of 'count' in the captures of the innermost lambda, because we weren't walking into the capture list. * tree.c (cp_walk_subtrees): Handle LAMBDA_EXPR. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/constexpr-if25.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/tree.c
[Bug c++/86740] [8 Regression] ICE with hana and nested lambdas (likely a regression, tsubst_copy, at cp/pt.c:15325)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86740 Jason Merrill changed: What|Removed |Added Known to work||9.0 Summary|[8/9 Regression] ICE with |[8 Regression] ICE with |hana and nested lambdas |hana and nested lambdas |(likely a regression, |(likely a regression, |tsubst_copy, at |tsubst_copy, at |cp/pt.c:15325) |cp/pt.c:15325) Known to fail|9.0 | --- Comment #7 from Jason Merrill --- Fixed on trunk so far.