comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: CONSTRAINT ERROR: erroneous memory access - SOLVED
Date: Tue, 9 Jun 2020 03:07:29 -0700 (PDT)
Date: 2020-06-09T03:07:29-07:00	[thread overview]
Message-ID: <62e8cb35-f201-419d-a8c4-c0c5b66eae4do@googlegroups.com> (raw)
In-Reply-To: <af223183-bcff-4b29-b355-f694e2c72091o@googlegroups.com>

Am Dienstag, 9. Juni 2020 02:39:34 UTC+2 schrieb John Cupak:
> After a little digging, I discovered an error in the Shortest_Paths.adb package on page 575 of the ARM.
> 
> Near the end of the package body, in the Rebuild path from target to source, the Prepend (The_Path, N); statement before the while N /= Source loop is missing. When I inserted the statement, recompiled, and ran the main program, the output matched Sedwick's.

You should report this to Ada Comment, how to do it see
http://www.ada-auth.org/standards/2xrm/html/RM-0-2.html (60/5)
so that this will be corrected in the next edition.

Please indicate exactly where to correct. This is the current version:

19/3  -- Rebuild path from target to source.
20/3  declare
         N : Node := Target;
      begin
         while N /= Source loop
            N := Reached_From(N);
            Prepend (The_Path, N);
         end loop;
      end;

  reply	other threads:[~2020-06-09 10:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-06 23:40 CONSTRAINT ERROR: erroneous memory access jcupak
2020-06-07  8:00 ` Egil H H
2020-06-09  0:39   ` CONSTRAINT ERROR: erroneous memory access - SOLVED John Cupak
2020-06-09 10:07     ` AdaMagica [this message]
2020-06-07  8:51 ` CONSTRAINT ERROR: erroneous memory access Jeffrey R. Carter
2020-06-07 10:20   ` Simon Wright
2020-06-07 14:47     ` Jeffrey R. Carter
2020-06-07 15:53 ` Anh Vo
2020-06-07 16:17   ` Egil H H
replies disabled

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