From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6944 invoked by alias); 1 Feb 2008 12:17:58 -0000 Received: (qmail 6857 invoked by uid 48); 1 Feb 2008 12:17:12 -0000 Date: Fri, 01 Feb 2008 12:17:00 -0000 Subject: [Bug ada/35050] New: renames entities not in symbol table X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "meudecc at itcarlow dot ie" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00043.txt.bz2 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