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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: hreba Newsgroups: comp.lang.ada Subject: Re: generic provokes segmentation fault Date: Mon, 18 May 2020 22:21:37 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net JzU/hU4jR4RElZ8uAQ/qTADK6DB9bSLf8m0DcfBsUS9cRka2Bk Cancel-Lock: sha1:cJq/8t/g45ZpnJ05NJKB2NorjnE= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:58739 Date: 2020-05-18T22:21:37+02:00 List-Id: On 2020-05-17 23:02, Jeffrey R. Carter wrote: > 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. > I moved the package instantiation to an auxiliary package, created only for this reason, and it works! Thanks, -- Frank Hrebabetzky, Kronach +49 / 9261 / 950 0565