https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111375
--- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> --- (In reply to Jeremy Bennett from comment #2) > (In reply to JuzheZhong from comment #1) > > I can't reproduce the ICE in your testcase with same command. > > > > ~/work/toolchain/develop/build/dev-rv64gcv_zfh-lp64d-medany-linux-spike/ > > install/bin/riscv64-unknown-linux-gnu-gfortran -w -march=rv64gcv -mabi=lp64d > > -c -Ofast -ftree-vectorize --param=riscv-autovec-preference=scalable bug.f90 > > > > > > No ICE. > > > > Could you help me with that ? > > Hi JuzheZhong > > I built with the following components: > > Repository SHA-1 hash (commit ID) > ---------- ---------------------- > gcc 316d57da5bb9205b946afc56d78582fee874e4b5 > binutils-gdb 9a343d2bb57c4555dedad9b43907aeeda7b51dae > glibc 073edbdfabaad4786e974a451efe4b6b3f7a5a61 > > Is this the same as you? I'll do a clean rebuild with the latest tool chain > in case this problem has been fixed. Current GCC enable scalable vectorization by default now. I think you could try again with the latest GCC.