https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118986
Bug ID: 118986 Summary: internal compiler error: in replace_decl, at cp/constexpr.cc Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: yotam.medini at gmail dot com Target Milestone: --- Created attachment 60563 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60563&action=edit seastar failed build log The following happened while trying to build seastar https://github.com/scylladb/seastar from master, top current commit: 9ca4feef kefu.c testing: prevent test scheduling after reactor exi I used: $ /home/yotam/gcc/bin/g++ --version g++ (GCC) 15.0.1 20250221 (experimental) Copyright (C) 2025 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. full log attached. internal compiler error: in replace_decl, at cp/constexpr.cc:2730 64 | return with_lock(l.for_read(), [p = std::make_unique<int>(42)] () mutable {}); | ~~~~~~~~~~~~~~~~~~~~~^~~~ 0x28ffbcf internal_error(char const*, ...) /home/yotam/pub/gcc/gcc/diagnostic-global-context.cc:517 0xb04ad3 fancy_abort(char const*, int, char const*) /home/yotam/pub/gcc/gcc/diagnostic.cc:1722 0x80f394 replace_decl(tree_node**, tree_node*, tree_node*) /home/yotam/pub/gcc/gcc/cp/constexpr.cc:2730 0xb6b506 cxx_eval_call_expression /home/yotam/pub/gcc/gcc/cp/constexpr.cc:3394 0xb6c02e cxx_eval_constant_expression /home/yotam/pub/gcc/gcc/cp/constexpr.cc:7809 0xb78d82 cxx_eval_outermost_constant_expr /home/yotam/pub/gcc/gcc/cp/constexpr.cc:9104 0xb7e963 maybe_constant_init_1 /home/yotam/pub/gcc/gcc/cp/constexpr.cc:9630 0xba992d cp_fold_r /home/yotam/pub/gcc/gcc/cp/cp-gimplify.cc:1507 0x18032f4 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) /home/yotam/pub/gcc/gcc/tree.cc:11590 0xba917e cp_fold_r /home/yotam/pub/gcc/gcc/cp/cp-gimplify.cc:1502 0x18032f4 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) /home/yotam/pub/gcc/gcc/tree.cc:11590 0xba19c0 cp_fold_function(tree_node*) /home/yotam/pub/gcc/gcc/cp/cp-gimplify.cc:1540 0xbf1755 finish_function(bool) /home/yotam/pub/gcc/gcc/cp/decl.cc:19361 0xc39e96 finish_lambda_function(tree_node*) /home/yotam/pub/gcc/gcc/cp/lambda.cc:1889 0xce3e2b cp_parser_lambda_body /home/yotam/pub/gcc/gcc/cp/parser.cc:12556 0xce3e2b cp_parser_lambda_expression /home/yotam/pub/gcc/gcc/cp/parser.cc:11797 0xce541f cp_parser_primary_expression /home/yotam/pub/gcc/gcc/cp/parser.cc:6229 0xcfd8d1 cp_parser_postfix_expression /home/yotam/pub/gcc/gcc/cp/parser.cc:8238 0xcfa00e cp_parser_unary_expression /home/yotam/pub/gcc/gcc/cp/parser.cc:9733 0xccd219 cp_parser_cast_expression /home/yotam/pub/gcc/gcc/cp/parser.cc:10648