https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88761
Bug ID: 88761
Summary: ICE in tsubst_copy, at cp/pt.c:15478 when chaining
lambda calls & fold-expressions
Product: gcc
Version: 8.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: joel.falcou at lri dot fr
Target Milestone: ---
The following code:
https://godbolt.org/z/RFZ_k6
compiles fine on g++ 7.x but fails in all g++ 8.x including trunk with an ICE
in tsubst_copy, at cp/pt.c:15478
Unrolling various fold-expression by hand has no effect, nor does capture of
the variable differently (value, mutable lambda etc...)