https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107743
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sjames at gcc dot gnu.org --- Comment #3 from Sam James <sjames at gcc dot gnu.org> --- Created attachment 58814 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58814&action=edit expmed.ii.xz ``` $ g++ -c expmed.ii -O2 -Werror=maybe-uninitialized /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/expmed.cc: In function ‘rtx_def* extract_bit_field_1(rtx, poly_uint64, poly_uint64, int, rtx, machine_mode, machine_mode, bool, bool, rtx_def**)’: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/expmed.cc:1851:45: warning: ‘*(unsigned int*)((char*)&imode + offsetof(scalar_int_mode, scalar_int_mode::m_mode))’ may be used uninitialized [-Wmaybe-uninitialized] 1851 | rtx sub = extract_bit_field_as_subreg (mode1, op0, imode, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 1852 | bitsize, bitnum); | ~~~~~~~~~~~~~~~~ /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/expmed.cc:1811:19: note: ‘*(unsigned int*)((char*)&imode + offsetof(scalar_int_mode, scalar_int_mode::m_mode))’ was declared here 1811 | scalar_int_mode imode; | ^~~~~ ```