https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99800
Bug ID: 99800
Summary: ICE Segmentation fault when put lambda in template
parameter list
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
https://godbolt.org/z/b6cnKo7ej
template <int> struct A {};
template <A> struct B {};
template <A a> using b = B<[]{ return a; }()>;
<source>:3:45: internal compiler error: Segmentation fault
3 | template <A a> using b = B<[]{ return a; }()>;
| ^
0x1cfb7f9 internal_error(char const*, ...)
???:0
0x6c42c5 resolve_args(vec<tree_node*, va_gc, vl_embed>*, int)
???:0
0x909251 do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
???:0
0x929663 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
???:0
0x97fb6d finish_template_type(tree_node*, tree_node*, int)
???:0
0x8e12ad c_parse_file()
???:0
0xa600a2 c_common_parse_file()
???:0
Please submit a full bug report,