https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105988
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- The rtx_insn in question is (note 13 14 17 5 [bb 5] NOTE_INSN_BASIC_BLOCK) but INSN_LOCATION here is the NOTE kind!? Still it says INSN_HAS_LOCATION and the XUINT access RTL_CHECK2 isn't flagging this. What's the correct check to use here in /* Dump file:line from INSN's location info to dump_file. */ static void dump_insn_location (rtx_insn *insn) { if (dump_file && INSN_HAS_LOCATION (insn)) { expanded_location xloc = insn_location (insn); fprintf (dump_file, " %s:%i", xloc.file, xloc.line); } } ?