From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2078 invoked by alias); 2 Oct 2005 17:09:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2068 invoked by uid 48); 2 Oct 2005 17:09:42 -0000 Date: Sun, 02 Oct 2005 17:09:00 -0000 Subject: [Bug ada/24167] New: Visibility of private component of parent in child generic, generic compiles but instantiation doesn't X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "simon at pushface dot org" X-SW-Source: 2005-10/txt/msg00116.txt.bz2 List-Id: The example (which I will upload directly) fails as follows: grendel:~/tmp/visibility simon$ gnatmake -c -u -f actual-s.ads gcc -c actual-s.ads actual-s.ads:4:01: instantiation error at basis-second.adb:4 actual-s.ads:4:01: no selector "Started" for type "Base" defined at basis-second.ads:4, instance at line 4 gnatmake: "actual-s.ads" compilation error I think the code should have compiled, because the selector Started is defined in the private part of the parent package Basis. However grendel:~/tmp/visibility simon$ gnatmake -c -u -f basis-second.adb gcc -c basis-second.adb grendel:~/tmp/visibility simon$ In other words, the generic compiles but the instantiation doesn't, which is not meant to happen. -- Summary: Visibility of private component of parent in child generic, generic compiles but instantiation doesn't Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ada AssignedTo: unassigned@gcc.gnu.org ReportedBy: simon@pushface.org GCC build triplet: powerpc-apple-darwin7.9.0 GCC host triplet: powerpc-apple-darwin7.9.0 GCC target triplet: powerpc-apple-darwin7.9.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24167