https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113650
Bug ID: 113650 Summary: __builtin_nonlocal_goto ICEs when passed 0 as arguments Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gabravier at gmail dot com Target Milestone: --- void f() { __builtin_nonlocal_goto(0, 0); } This crashes GCC with the following error: during RTL pass: expand <source>: In function 'f': <source>:2:9: internal compiler error: in int_mode_for_mode, at stor-layout.cc:407 2 | __builtin_nonlocal_goto(0, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x23382dc internal_error(char const*, ...) ???:0 0x96bd77 fancy_abort(char const*, int, char const*) ???:0 0xc569ae emit_move_insn_1(rtx_def*, rtx_def*) ???:0 0xc56d40 emit_move_insn(rtx_def*, rtx_def*) ???:0 0xc2c376 copy_to_reg(rtx_def*) ???:0 0xaf9911 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ???:0 0xc53d5c expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.