comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Question about sets and expression
Date: Tue, 09 May 2017 12:15:52 +0100
Date: 2017-05-09T12:15:52+01:00	[thread overview]
Message-ID: <lyy3u6i8lz.fsf@pushface.org> (raw)
In-Reply-To: f6b949c7-7cd8-4d17-914f-0569152e0a20@googlegroups.com

reinert <reinkor@gmail.com> writes:

> I get the output (debian, gnat-4.9):
>
> --------------------------------------------------------------------------
> ** A: 
> ** B: 
>
> raised PROGRAM_ERROR : test1b.adb:29 finalize/adjust raised exception
> --------------------------------------------------------------------------
>  Why "finalize/adjust raised exception" ?

I'm afraid this is a GNAT 4.9 error. On macOS Sierra,

GCC 7.1.0 : OK
GCC 6.1.0 : OK
GCC 5.2.0 : OK
GCC 4.9.1 : fails

For amusement, GDB shows that it happens at a-crbtgo.adb:539:

538	   procedure Generic_Clear (Tree : in out Tree_Type) is
539	      Root : Node_Access := Tree.Root;
540	   begin

called from a-coorse.adb:1319:

1319	      return It : constant Iterator :=
1320	        Iterator'(Limited_Controlled with
1321	                    Container => Container'Unrestricted_Access,
1322	                    Node      => null);
1323	   end Iterate;

      parent reply	other threads:[~2017-05-09 11:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 15:53 Question about sets and expression reinert
2017-05-08 16:06 ` Robert Eachus
2017-05-08 17:03   ` reinert
2017-05-08 17:04   ` reinert
2017-05-08 19:00 ` Simon Wright
2017-05-09  3:58   ` reinert
2017-05-09  5:48     ` reinert
2017-05-09  6:23       ` Niklas Holsti
2017-05-09  6:29       ` G.B.
2017-05-09  7:14         ` reinert
2017-05-09  9:28       ` gautier_niouzes
2017-05-09 11:15       ` Simon Wright [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox