From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19893 invoked by alias); 6 Jun 2004 10:14:58 -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 19885 invoked by uid 48); 6 Jun 2004 10:14:56 -0000 Date: Sun, 06 Jun 2004 10:14:00 -0000 From: "ludovic dot brenta at insalien dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040606101438.15840.ludovic.brenta@insalien.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/15840] New: Illegal program not detected, RM 3.7(14) X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00668.txt.bz2 List-Id: -- RM95 3.7(14) -- If the parent type is not a tagged type, then each -- discriminant of the derived type shall be used in -- the constraint defining the parent subtype; generic type T1 is private; package Test_247013 is type T2 (x: integer) is new T1; -- ERROR: x not used end Test_247013; I expect an error message like this: test_247013.ads:8:11: Discriminant "x" is not used to constrain the parent subtype "T1" (RM 3.7(14)) But the compiler says nothing -- Summary: Illegal program not detected, RM 3.7(14) 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=15840