From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12318 invoked by alias); 27 Nov 2006 17:21:49 -0000 Received: (qmail 12175 invoked by uid 48); 27 Nov 2006 17:21:34 -0000 Date: Mon, 27 Nov 2006 17:21:00 -0000 Message-ID: <20061127172134.12174.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug ada/29958] Ada: gcc bug box with an inherited generic package In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "chevallier_sylvain at yahoo dot fr" 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: 2006-11/txt/msg02364.txt.bz2 ------- Comment #3 from chevallier_sylvain at yahoo dot fr 2006-11-27 17:21 ------- Okay, I have a *more* compact version of this bug : $ cat example.ads package Example is type I is tagged record N : Integer; end record; private procedure P_Private (X : in out I); end Example; $ cat example-generic_child.ads generic type EI is new I with private; package Example.Generic_Child is procedure P_Private (X : in out EI); end Example.Generic_Child; $ gcc -c example-generic_child.ads +===========================GNAT BUG DETECTED==============================+ | 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) (i486-pc-linux-gnu) | | Assert_Failure sem_ch7.adb:1313 | | Error detected at example-generic_child.ads:3:1 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact gcc-4.1 or gnatmake command that you entered. | | Also include sources listed below in gnatchop format | | (concatenated together with no headers between files). | +==========================================================================+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. list may be incomplete compilation abandoned It seems gcc dislikes the fact that the "public" procedure Example.Generic_Child.P_Private share the same name that the private procedure Example.P_Private. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29958