https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157
--- Comment #19 from Andrew Teylu <andrew.teylu at vector dot com> --- (In reply to Mark Harmstone from comment #18) > (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. How are `char*`s (or similar) represented in CodeView? Maybe it is worth trying to make Ada arrays be at least as supported as `char*`. If you "know next to nothing about Ada", then I know zero, so please accept my apologies if I've "trivialised" what might be involved in solving this.
