From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13226 invoked by alias); 3 Sep 2011 03:24:46 -0000 Received: (qmail 13217 invoked by uid 22791); 3 Sep 2011 03:24:45 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 03 Sep 2011 03:24:31 +0000 From: "nicolas.boulenguez at free dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/37110] Assert_Failure at atree.adb:886 caused by legal prefixed notation Date: Sat, 03 Sep 2011 03:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nicolas.boulenguez at free dot fr X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2011-09/txt/msg00192.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37110 --- Comment #5 from nicolas.boulenguez at free dot fr 2011-09-03 03:23:36 UTC --- -- There were two distinct bugs. package P is type T1 is tagged null record; type T2 is tagged null record; function Func (Func_Formal : in T1'Class; I : in Integer) return access T2; procedure Proc (Proc_Formal : out T2); end P; -- This legal line causes a bug box. -- 4.4.6 (x86_64-pc-linux-gnu) Assert_Failure sinfo.adb:1149 -- 4.6.1 (x86_64-pc-linux-gnu) Assert_Failure sinfo.adb:1240 with P; use P; procedure Trigger1 is Actual : constant T1 := (null record); begin Proc (Proc_Formal => Func (Func_Formal => Actual, I => 0).all); end Trigger1; -- Obsessive Obfuscated Programming on Trigger1 caused another kind of -- bug box with 4.3 and 4.4. -- 4.4.6 (x86_64-pc-linux-gnu) Assert_Failure atree.adb:884 -- 4.6.1 (x86_64-pc-linux-gnu) detects the missing body. with P; use P; procedure Trigger2 is Actual : constant T1 := (null record); begin Actual.Func (0).Proc; end Trigger2;