https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107557
G. Steinmetz <gs...@t-online.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-pc-linux-gnu Keywords| |ice-on-valid-code --- Comment #1 from G. Steinmetz <gs...@t-online.de> --- Or this combination : $ gcc-13-20221106 -c z1.c -flto -fsanitize=undefined z1.c: In function 'main': z1.c:15:30: warning: passing argument 2 of 'test' from incompatible pointer type [-Wincompatible-pointer-types] 15 | return f(&m, &d) + test(m, &fn); | ^~~ | | | int (* (*)[(long int)(((m) <= 0 ? __builtin___ubsan_handle_vla_bound_not_positive(&*.Lubsan_data0, (long unsigned int)(m)) : (void)0, (m))) - 1])(void) z1.c:6:25: note: expected 'int (* (*)(void))[(long int)(n) - 1]' but argument is of type 'int (* (*)[(long int)(((m) <= 0 ? __builtin___ubsan_handle_vla_bound_not_positive(&*.Lubsan_data0, (long unsigned int)(m)) : (void)0, (m))) - 1])(void)' 6 | int test(int n, int (*(*fn)(void))[n]) | ~~~~~~~~^~~~~~~~~~~~~ during IPA pass: modref z1.c: At top level: z1.c:16:1: internal compiler error: tree code 'ssa_name' is not supported in LTO streams 16 | } | ^ 0xb9c2ab lto_write_tree ../../gcc/lto-streamer-out.cc:561 0xb9c2ab lto_output_tree_1 ../../gcc/lto-streamer-out.cc:599 0xba2b17 DFS::DFS(output_block*, tree_node*, bool, bool, bool) ../../gcc/lto-streamer-out.cc:899 0xba3a18 lto_output_tree(output_block*, tree_node*, bool, bool) ../../gcc/lto-streamer-out.cc:1866 0xb9beb1 write_global_stream ../../gcc/lto-streamer-out.cc:2861 0xba64bf lto_output_decl_state_streams(output_block*, lto_out_decl_state*) ../../gcc/lto-streamer-out.cc:2908 0xba64bf produce_asm_for_decls() ../../gcc/lto-streamer-out.cc:3302 0xc1ee6f write_lto ../../gcc/passes.cc:2780 0xc22c2e ipa_write_summaries_1 ../../gcc/passes.cc:2841 0xc22c2e ipa_write_summaries() ../../gcc/passes.cc:2897 0x8e4874 ipa_passes ../../gcc/cgraphunit.cc:2218 0x8e4874 symbol_table::compile() ../../gcc/cgraphunit.cc:2291 0x8e764f symbol_table::compile() ../../gcc/cgraphunit.cc:2546 0x8e764f symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2543