From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28563 invoked by alias); 3 Jun 2004 19:24:12 -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 28499 invoked by uid 48); 3 Jun 2004 19:24:11 -0000 Date: Thu, 03 Jun 2004 19:24:00 -0000 From: "ludovic dot brenta at insalien dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040603192409.15808.ludovic.brenta@insalien.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/15808] New: Illegal program not detected, RM 3.9.3(10) X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00376.txt.bz2 List-Id: (Debian bug #246392) -- RM 3.9.3(10) -- For an abstract type declared in a visible part, an abstract -- primitive subprogram shall not be declared in the private part, -- unless it is overriding an abstract subprogram implicitly -- declared in the visible part. generic package Test_246392 is type T1 is abstract tagged private; private type T1 is abstract tagged null record; procedure p (x: T1) is abstract; --ERROR: abstract subprogram not visible end Test_246392; I expect an error like this: test_246392.ads:12:26: private abstract subprogram does not override a public abstract subprogram But I get nothing. -- Summary: Illegal program not detected, RM 3.9.3(10) Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ludovic dot brenta at insalien dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15808