https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95362
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target|arm aarch64 |arm, aarch64, x86_64 --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- One can reproduce that on x86_64-linux-gnu as well: $ cat ice.c void bar(); int main(int argc, char **argv) { struct s { char b[argc]; }; void nested(struct s x) {} bar(nested); return 0; } $ gcc -O2 -flto ice.c during IPA pass: cp lto1: internal compiler error: in operator[], at vec.h:867 0x665956 vec<ipa_jump_func, va_gc, vl_embed>::operator[](unsigned int) /home/marxin/Programming/gcc/gcc/vec.h:867 0x665956 ipa_get_ith_jump_func /home/marxin/Programming/gcc/gcc/ipa-prop.h:825 0x667e38 vec<lto_encoder_entry, va_heap, vl_ptr>::operator[](unsigned int) /home/marxin/Programming/gcc/gcc/alloc-pool.h:260 0x667e38 lto_symtab_encoder_deref /home/marxin/Programming/gcc/gcc/lto-streamer.h:1173 0x667e38 ipa_prop_read_section /home/marxin/Programming/gcc/gcc/ipa-prop.c:5059 0x667e38 ipa_prop_read_jump_functions() /home/marxin/Programming/gcc/gcc/ipa-prop.c:5089 0xc5299e ipa_read_summaries_1 /home/marxin/Programming/gcc/gcc/passes.c:2837 0x850cec read_cgraph_and_symbols(unsigned int, char const**) /home/marxin/Programming/gcc/gcc/lto/lto-common.c:2921 0x837a52 lto_main() /home/marxin/Programming/gcc/gcc/lto/lto.c:625 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status