https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117354
--- Comment #3 from Sam James <sjames at gcc dot gnu.org> --- Reproduced on trunk and tip of releases/gcc-14 with: ``` $ gcc /tmp/a.c -O2 -march=znver4 -fwhole-program -fsanitize=address during RTL pass: expand example.c:29:3: internal compiler error: in extract_bit_field_1, at expmed.cc:1857 0x632f0942391e internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:518 0x632f0940097c fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1580 0x632f084bd52e extract_bit_field_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expmed.cc:1857 0x632f09c550f6 extract_bit_field(rtx_def*, poly_int<1u, unsigned long>, poly_int<1u, unsigned long>, int, rtx_def*, machine_mode, machine_mode, bool, rtx_def**) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expmed.cc:2174 0x632f080dcb9b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.cc:12509 0x632f099b12db expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.cc:9481 0x632f099b12db expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.cc:11150 0x632f0999b9ef expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.cc:11327 0x632f09f103aa expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.h:323 0x632f09f103aa store_one_arg /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/calls.cc:5078 0x632f0830cffc expand_call(tree_node*, rtx_def*, int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/calls.cc:3567 0x632f0999daea expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.cc:12402 0x632f0999831f expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/expr.h:323 0x632f0999831f expand_call_stmt /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:2897 0x632f0999831f expand_gimple_stmt_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:3964 0x632f0999204c expand_gimple_stmt /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:4106 0x632f0999204c expand_gimple_basic_block /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:6162 0x632f09911506 execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:6901 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` -flto or -fwhole-program trigger it.