https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80267
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- trippels@gcc75 ~ % cat bug.ii template <typename> void a() { int b; auto &c = b; [&] { c; [&] { c; }; }; } void d() { a<int>(); } trippels@gcc75 ~ % g++ -c bug.ii bug.ii: In instantiation of ‘a()::<lambda()>::<lambda()> [with <template-parameter-1-1> = int]’: bug.ii:6:7: required from ‘struct a()::<lambda()> [with <template-parameter-1-1> = int]::<lambda()>’ bug.ii:6:5: required from ‘a()::<lambda()> [with <template-parameter-1-1> = int]’ bug.ii:4:5: required from ‘struct a() [with <template-parameter-1-1> = int]::<lambda()>’ bug.ii:4:3: required from ‘void a() [with <template-parameter-1-1> = int]’ bug.ii:9:19: required from here bug.ii:6:11: internal compiler error: in tsubst_copy, at cp/pt.c:14609