https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97188
Bug ID: 97188 Summary: [11 Regression] ICE in c_tree_printer at c/c-objc-common.c:314 since r11-3303-g6450f07388f9fe57 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: msebor at gcc dot gnu.org Target Milestone: --- The following ICEs: $ void function(short width, int[][width]); void test() { function(1, 0); } $ gcc vla.c -Wnonnull -c during RTL pass: expand In function ‘test’: Segmentation fault 2 | void test() { function(1, 0); } | ^~~~~~~~~~~~~~ 0xd9e6ff crash_signal /home/marxin/Programming/gcc/gcc/toplev.c:329 0x7ffff788652f ??? /usr/src/debug/glibc-2.31-6.3.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0 0x8336e0 c_tree_printer /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:314 0x8336e0 c_tree_printer /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:254 0x188dccc pp_format(pretty_printer*, text_info*) /home/marxin/Programming/gcc/gcc/pretty-print.c:1475 0x1871bbe diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) /home/marxin/Programming/gcc/gcc/diagnostic.c:1205 0x1874238 diagnostic_impl /home/marxin/Programming/gcc/gcc/diagnostic.c:1355 0x1874238 warning_at(unsigned int, int, char const*, ...) /home/marxin/Programming/gcc/gcc/diagnostic.c:1492 0x927455 maybe_warn_rdwr_sizes /home/marxin/Programming/gcc/gcc/calls.c:2038 0x928ad6 initialize_argument_information /home/marxin/Programming/gcc/gcc/calls.c:2531 0x928ad6 expand_call(tree_node*, rtx_def*, int) /home/marxin/Programming/gcc/gcc/calls.c:3926 0xa5ea2a expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/marxin/Programming/gcc/gcc/expr.c:11246 0x940259 expand_expr /home/marxin/Programming/gcc/gcc/expr.h:282 0x940259 expand_call_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:2703 0x940259 expand_gimple_stmt_1 /home/marxin/Programming/gcc/gcc/cfgexpand.c:3686 0x940259 expand_gimple_stmt /home/marxin/Programming/gcc/gcc/cfgexpand.c:3851 0x94560a expand_gimple_basic_block /home/marxin/Programming/gcc/gcc/cfgexpand.c:5892 0x9470b6 execute /home/marxin/Programming/gcc/gcc/cfgexpand.c:6576 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.