From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2276 invoked by alias); 31 Mar 2007 22:04:52 -0000 Received: (qmail 2128 invoked by uid 48); 31 Mar 2007 22:04:41 -0000 Date: Sat, 31 Mar 2007 22:04:00 -0000 Subject: [Bug ada/31415] New: Illegal program not detected, Ada 2005, 3.9.4(12/2) and 7.5(6.1/2) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ludovic at ludovic-brenta dot org" 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: 2007-03/txt/msg02882.txt.bz2 Debian Bug#416973 In the following program, the declaration of T3 is illegal because it extends a limited type (T1) and a nonlimited interface (T2). -- compiled -gnat05 -- error not detected package pak1 is -- RM 3.9.4(12/2) and 7.5(6.1/2) -- check that both ancestors must be either limited or nonlimited type T1 is tagged limited null record; type T2 is interface; type T3 is new pak1.T1 and pak1.T2 with null record; --ERROR: mixed types end pak1; To reproduce: gnatmake -gnat05 pak1.ads Error expected: pak1.ads:8:30: all ancestors must be either limited or nonlimited -- Summary: Illegal program not detected, Ada 2005, 3.9.4(12/2) and 7.5(6.1/2) Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ludovic at ludovic-brenta dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31415