https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128084
--- Comment #1 from Patrick.Nicolas at arteris dot com ---
Compiler output:
<source>: In instantiation of 'auto generate() [with T = int]':
<source>:20:34: required from here
20 | return wrap(generate<int>());
| ~~~~~~~~~~~~~^~
<source>:6:12: internal compiler error: Segmentation fault
6 | return []() -> std::generator<int> {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 | co_yield 0;
| ~~~~~~~~~~~
8 | };
| ~
0x2287785 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x2298cd6 internal_error(char const*, ...)
???:0
0x9883c6 maybe_end_member_template_processing()
???:0
0x884ca4 finish_function(bool)
???:0
0x8422e4 cp_coroutine_transform::finish_transforms()
???:0
0x884d87 finish_function(bool)
???:0
0x8bb3dc finish_lambda_function(tree_node*)
???:0
0x9b883b tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*)
???:0
0x99f62f instantiate_decl(tree_node*, bool, bool)
???:0
0x894821 maybe_instantiate_decl(tree_node*)
???:0
0x895b67 mark_used(tree_node*, int)
???:0
0x80330e build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
???:0
0x9d8b3e finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
???:0
0x981ebd c_parse_file()
???:0
0xa8b739 c_common_parse_file()
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1