Hit the following ICE today, just sharing here to be helpful: https://gcc.godbolt.org/z/advKKxK43
during RTL pass: final
<source>: In member function 'void Stack::push(int)':
<source>:20:3: internal compiler error: in gen_inlined_subroutine_die, at
dwarf2out.cc:25002
20 | }
| ^
