https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
Bug ID: 112505 Summary: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- Compiler Explorer: https://gcc.godbolt.org/z/nTjnh73xj The crash triggering program (compile with `gcc-14 -O3`): ``` short int w9; struct T { short a : 14; int b; }; struct T v; void __attribute__((simd)) zc() { w9 *= v.b ? v.a-- < 0 : 0; } ``` The crash output: ``` during GIMPLE pass: vect <source>: In function 'zc.simdclone.0': <source>:7:28: internal compiler error: in build_vector_from_val, at tree.cc:2104 7 | void __attribute__((simd)) zc() { | ^~ 0x238b15e internal_error(char const*, ...) ???:0 0xa11270 fancy_abort(char const*, int, char const*) ???:0 0x13ee023 vectorizable_induction(_loop_vec_info*, _stmt_vec_info*, gimple**, _slp_tree*, vec<stmt_info_for_cost, va_heap, vl_ptr>*) ???:0 0x2115bf8 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ???:0 0x13fedc0 vect_transform_loop(_loop_vec_info*, gimple*) ???:0 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. Compiler returned: 1 ```