https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124081
Gaius Mulley <gaius at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-02-16
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
--- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Many thanks for the bug report.
Also confirmed on the development branch.
$ gm2 -c Variant.mod
during RTL pass: expand
Variant.mod: In function ‘_M2_Variant_init’:
Variant.mod:10:46: internal compiler error: in expand_expr_real_2, at
expr.cc:9880
10 | mset := ModuleSet{otherpart};
| ^
0x33fe8cc internal_error(char const*, ...)
../../gcc/diagnostic-global-context.cc:787
0x3408176 fancy_abort(char const*, int, char const*)
../../gcc/diagnostics/context.cc:1812
0x1259e65 expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
../../gcc/expr.cc:9880
0x12664f5 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../gcc/expr.cc:12978
0x12592db expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
../../gcc/expr.cc:9619
0x125074f store_expr(tree_node*, rtx_def*, int, bool, bool)
../../gcc/expr.cc:6803
0x124f2a5 expand_assignment(tree_node*, tree_node*, bool)
../../gcc/expr.cc:6499
0x10bbc4d expand_gimple_stmt_1
../../gcc/cfgexpand.cc:4309
0x10bbf29 expand_gimple_stmt
../../gcc/cfgexpand.cc:4390
0x10c306c expand_gimple_basic_block
../../gcc/cfgexpand.cc:6507
0x10c531e execute
../../gcc/cfgexpand.cc:7254
$ gm2 --version
gm2 (GCC) 16.0.1 20260214 (experimental)
Copyright (C) 2026 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.
Interestingly I think this is related to PR112911.