The example below illustrate that the .ali files do not always contain renamed
subprograms references:
>>>
--pb_renaming.ads
package pb_renaming is
  function Plus(X, Y: Integer) return Integer;
  function My_plus(X, Y: Integer) return Integer renames Plus;
  function Add(X, Y: Integer) return Integer renames "+";
  A : Integer;          
end pb_renaming;
>>>
--pb_renaming.adb
package body pb_renaming is
  function Plus(X, Y: Integer) return Integer is
  begin
    return X+Y; 
  end Plus;
begin
  --below, Add is properly cross-referenced by gnatxref in gnat v3.4.1 but not
in gnat v4.1.3
  --below, My_plus is never properly cross-referenced according to gnatxref
output
  A := Add(4, 6) + My_plus(4, 6);
end pb_renaming;
>>

Gnatxref output extract:
My_plus                                          function
  Decl:  pb_renaming.ads        3:12

Reference entry is missing for My_plus

regards,
chris


-- 
           Summary: renames entities not in symbol table
           Product: gcc
           Version: 4.1.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: meudecc at itcarlow dot ie


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35050

Reply via email to