From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: generic provokes segmentation fault Date: Sun, 17 May 2020 23:02:08 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 17 May 2020 21:02:08 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="1adf43d02d2310dac062ed715f147969"; logging-data="13701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CpL5QGH7gvU6iLZr/JjkLcmeahvYUVPI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:BFWkk9ZVBWwyQFslGKuoW43mo/E= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:58719 Date: 2020-05-17T23:02:08+02:00 List-Id: On 5/17/20 4:19 PM, hreba wrote: > > and substitute in the main program > >    package Ode renames odeiv2; Here the package is library-level. > > with > >    type Real is digits 6; >    package Ode is new odeiv2 (2, Real); Here it's local to your main-program procedure. Try making the instantiation library level and see if that works. -- Jeff Carter "Who wears beige to a bank robbery?" Take the Money and Run 144