https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100271
Bug ID: 100271
Summary: ICE in in tsubst_copy, at cp/pt.c:16480
Product: gcc
Version: 10.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: zchendd at connect dot ust.hk
Target Milestone: ---
Created attachment 50681
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50681&action=edit
Compiler output
When compiling a c++ file with an enum within nested lambda with auto
parameter, the error described in the summary occur.
Test file:
int main()
{
auto l1 = [](auto a) {
auto l2 = [](auto b) {
enum {
x,y,z,
}v = x;
};
};
l1(0);
}