https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86469
--- Comment #1 from Jonny Grant <jg at jguk dot org> --- Perhaps G++ can check those dwarf offsets are within bounds when writing out the object files itself when saving obj files? Could output a useful warning, when detected as an internal compiler error.