https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116626
Bug ID: 116626 Summary: ICE while VLA vectorisation Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: kugan at gcc dot gnu.org Target Milestone: --- Created attachment 59057 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59057&action=edit testcase For a partally reduced code, I am seeing: t.cpp:350:12: internal compiler error: in to_constant, at poly-int.h:592 350 | void _M_run() { _M_func(); } | ^~~~~~ 0x38da7fb internal_error(char const*, ...) ../../gcc/gcc/diagnostic-global-context.cc:492 0x38b1e5f fancy_abort(char const*, int, char const*) ../../gcc/gcc/diagnostic.cc:1658 0xf747cb poly_int<2u, unsigned long>::to_constant() const ../../gcc/gcc/poly-int.h:592 0x20bc547 nunits_for_known_piecewise_op ../../gcc/gcc/tree-vect-generic.cc:96 0x20bcff3 expand_vector_piecewise ../../gcc/gcc/tree-vect-generic.cc:290 0x20c1cc7 expand_vector_operation ../../gcc/gcc/tree-vect-generic.cc:1257 0x20c7f37 expand_vector_operations_1 ../../gcc/gcc/tree-vect-generic.cc:2366 0x20c8117 expand_vector_operations ../../gcc/gcc/tree-vect-generic.cc:2400 0x20c8417 execute ../../gcc/gcc/tree-vect-generic.cc:2497 compile command: -O3 -mcpu=neoverse-v2 t.cpp -std=gnu++20 g++ -v Using built-in specs. COLLECT_GCC=/proj/grco/gcc/Linux_aarch64/upstream-main/latest/bin/g++ COLLECT_LTO_WRAPPER=/proj/grco/gcc/Linux_aarch64/upstream-main/20240905192606-a2e28b10/bin/../libexec/gcc/aarch64-unknown-linux-gnu/15.0.0/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /var/jenkins/workspace/GCC_oss-main/configure --enable-multiarch=yes --enable-languages=c,c++,fortran,lto --prefix=/proj/grco/gcc/Linux_aarch64/oss-main/20240905192606-a2e28b10 Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20240906 (experimental) (GCC)