https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111649
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > This patch fixes the build for me; have not tested it otherwise. It will make stuff slower but more correct. I think it is up to the riscv maintainers to decide what they want. (In reply to Andrew Pinski from comment #5) > vector_block_infos.safe_grow_cleared (last_basic_block_for_fn (cfun)); Indeed. While vector_block_info has defaulted default constructor, as its members are vector_insn_info which have non-trivial default constructors, it has non-trivial one as well.