https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107229
Bug ID: 107229 Summary: ICE at -O1 and -Os with "-ftree-vectorize": verify_gimple failed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- This appears to be a very recent regression as it doesn't seem to fail with the build from Compiler Explorer. [541] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221012 (experimental) [master r13-3246-g1c0670c62fc] (GCC) [542] % [542] % gcctk -O1 small.c; ./a.out [543] % [543] % gcctk -O1 -ftree-vectorize small.c small.c: In function ‘main’: small.c:9:5: error: invalid position or size operand to ‘bit_field_ref’ 9 | int main() { | ^~~~ _ifc__17 = BIT_FIELD_REF <_ifc__16, 21, 0xffffffffffffffffffffffffffffffc0>; during GIMPLE pass: ifcvt small.c:9:5: internal compiler error: verify_gimple failed 0xf3b99a verify_gimple_in_cfg(function*, bool) ../../gcc-trunk/gcc/tree-cfg.cc:5649 0xdf9d17 execute_function_todo ../../gcc-trunk/gcc/passes.cc:2091 0xdfa2bb execute_todo ../../gcc-trunk/gcc/passes.cc:2145 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. [544] % [544] % cat small.c int a, c; struct { long d; int : 8; int : 27; int e : 21; } f; void g(int b) { a = a & 1; } int main() { while (c) g(f.e); return 0; }