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!feeder.eternal-september.org!aioe.org!.POSTED.6k1R0IQgF+3y+m4EkNohlQ.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: CONSTRAINT ERROR: erroneous memory access Date: Sun, 07 Jun 2020 11:20:51 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: 6k1R0IQgF+3y+m4EkNohlQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:opv1zPkffzUvOQd+eV6Je7EPZtU= Xref: reader01.eternal-september.org comp.lang.ada:58997 Date: 2020-06-07T11:20:51+01:00 List-Id: "Jeffrey R. Carter" writes: > You need to add -gnatan -fstack-check to obtain full Ada semantics. Not quibbling with -fstack-check, but why the others? -gnata, enable assertions: the RM doesn't say what the effect of an assertion should be absent any Assertion_Policy, and if Assertion_Policy is present it overrides the absence of -gnata -gnatn, enables pragma Inline across units: Inline only specifies that inline expansion is desired.