https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117050
Bug ID: 117050 Summary: ice in vect_build_slp_tree_2 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- This reduced C code: typedef struct { char *data } song_sample_t; typedef struct { int right_ramp; int left_ramp } song_voice_t; song_sample_t *csf_stop_sample_smp, *csf_stop_sample_v_3; song_voice_t *csf_stop_sample_v; void csf_stop_sample() { for (int i; i; i++, csf_stop_sample_v++) if (csf_stop_sample_v_3 || csf_stop_sample_smp->data) csf_stop_sample_v->left_ramp = csf_stop_sample_v->right_ramp = 0; } does this foundBugs $ /home/dcb40b/gcc/results.20241008.asan.ubsan/bin/gcc -c -w -O2 bug1052.c foundBugs $ /home/dcb40b/gcc/results.20241009.asan.ubsan/bin/gcc -c -w -O2 -march=znver3 bug1052.c during GIMPLE pass: vect player/csndfile.c: In function ‘csf_stop_sample’: player/csndfile.c:1256:6: internal compiler error: Segmentation fault 0x22d9add internal_error(char const*, ...) /home/dcb40b/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:517 0xf13b59 crash_signal(int) /home/dcb40b/gcc/working/gcc/../../trunk/gcc/toplev.cc:321 0x12386e5 vect_build_slp_tree_2(vec_info*, _slp_tree*, vec<_stmt_vec_info*, va_heap, vl_ptr>, unsigned int, poly_int<1u, unsigned long>*, bool*, unsigned int*, unsigned int*, hash_map<vec<_stmt_vec_info*, va_heap, vl_ptr>, _slp_tree*, simple_hashmap_traits<bst_traits, _slp_tree*> >*) with recent gcc. Git hashes are g:5f0a381801b754db and g:4f97411c0d45dc3d.