https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157
--- Comment #18 from Mark Harmstone <maharmstone at gcc dot gnu.org> --- (In reply to Eric Botcazou from comment #17) > > As Eric said, the problem is essentially that CodeView isn't designed to > > accommodate Ada's type system. > > Yes, but STABS was in the same case so special encodings were devised to > work around its limitations and they are still there under > -fgnat-encodings=all, so the option should very likely be implied by > -gcodeview. Send a patch for that if you think it will help. I know next to nothing about Ada. -fgnat-encodings=all removes the DW_AT_upper_bound from the DW_TAG_subrange_type DIE in the array, so it's still not representable as a CodeView LF_ARRAY, which needs this to be an integer constant.