https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121157

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-07-18
                 CC|                            |ebotcazou at gcc dot gnu.org
            Summary|GNAT internal error when    |internal error on Ada's
                   |using -gcodeview            |unconstrained array types
                   |                            |with -gcodeview
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
          Component|ada                         |debug

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The problem apparently pertains to fat pointer types, i.e. with just:

procedure P (S : String) is
begin
  null;
end;

which is not very surprising given the complexity of the associated DWARF.

The workaround is to add -fgnat-encodings=all.

Reply via email to