https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125066
Bug ID: 125066
Summary: [17 Regression] ICE on qtwebengine-6.11.0
(clang::trivial_abi)
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at gcc dot gnu.org
Target Milestone: ---
After #125022 being fixed I tried again to build qtwebengine-6.11.0. gcc-master
still fails. `cvise` extracted the following:
$ cat logging.cc.cc
class RepeatingCallback;
struct ScopedLogAssertHandler {
ScopedLogAssertHandler(RepeatingCallback);
};
struct [[clang::trivial_abi]] BindStateHolder {
~BindStateHolder();
};
struct [[clang::trivial_abi]] RepeatingCallback {
BindStateHolder holder_;
};
ScopedLogAssertHandler::ScopedLogAssertHandler(RepeatingCallback) {}
$ gcc/xg++ -Bgcc -c logging.cc.cc -o bug.o
logging.cc.cc: In constructor
‘ScopedLogAssertHandler::ScopedLogAssertHandler(RepeatingCallback)’:
logging.cc.cc:11:68: internal compiler error: in gimplify_expr, at
gimplify.cc:21334
11 | ScopedLogAssertHandler::ScopedLogAssertHandler(RepeatingCallback) {}
| ^
0x2a09180 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x29fb394 internal_error(char const*, ...)
???:0
0x2a066b7 fancy_abort(char const*, int, char const*)
???:0
0x1050662 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
???:0
0x1050ca8 gimplify_stmt(tree_node**, gimple**)
???:0
0x105445b gimplify_statement_list(tree_node**, gimple**)
???:0
0x104f47e gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
???:0
0x1050ca8 gimplify_stmt(tree_node**, gimple**)
???:0
0x10545e6 gimplify_body(tree_node*, bool)
???:0
0x1054b1f gimplify_function_tree(tree_node*)
???:0
0xdf97bd cgraph_node::analyze()
???:0
0xdfc646 analyze_functions(bool)
???:0
0xdfd982 symbol_table::finalize_compilation_unit()
???:0
$ gcc/xg++ -Bgcc -v
Reading specs from gcc/specs
COLLECT_GCC=gcc/xg++
COLLECT_LTO_WRAPPER=gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib
--disable-bootstrap --disable-lto --disable-libsanitizer
--enable-languages=c,c++ CFLAGS='-O1 -g0' CXXFLAGS='-O1 -g0' LDFLAGS='-O1 -g0'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 17.0.0 20260428 (experimental) (GCC)