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 X-Received: by 10.50.20.41 with SMTP id k9mr210459ige.8.1461368981746; Fri, 22 Apr 2016 16:49:41 -0700 (PDT) X-Received: by 10.182.129.227 with SMTP id nz3mr279038obb.2.1461368981711; Fri, 22 Apr 2016 16:49:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!g8no5548184igr.0!news-out.google.com!uv8ni157igb.0!nntp.google.com!g8no5548180igr.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 22 Apr 2016 16:49:41 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=153.185.5.221; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj NNTP-Posting-Host: 153.185.5.221 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <552a43ba-5a15-4d46-bb74-7d144d3cd77c@googlegroups.com> Subject: Re: Non_Primitive Operations and Object.Operation Resolution From: ytomino Injection-Date: Fri, 22 Apr 2016 23:49:41 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:30251 Date: 2016-04-22T16:49:41-07:00 List-Id: I think It's a bug of the compiler. I tried to move the prototype of Element from body to spec. Then, I got success to compile it with gcc-6.0.0-20160401. --- pragmarc-unbounded_integers.ads.orig 2016-04-23 08:45:44.000000000 +0900 +++ pragmarc-unbounded_integers.ads 2016-04-23 08:46:12.000000000 +0900 @@ -72,6 +72,10 @@ Negative : Boolean := False; Digit : Digit_List := Single_Zero; end record; + + function Element (List : Digit_List; Index : Positive) return Digit_Value; + -- If Index is a valid index into List, returns the value stored there; otherwise, returns 0 + end PragmARC.Unbounded_Integers; -- -- This is free software; you can redistribute it and/or modify it under --- pragmarc-unbounded_integers.adb.orig 2016-04-23 08:45:48.000000000 +0900 +++ pragmarc-unbounded_integers.adb 2016-04-23 08:46:08.000000000 +0900 @@ -14,9 +14,6 @@ use type Digit_List; - function Element (List : Digit_List; Index : Positive) return Digit_Value; - -- If Index is a valid index into List, returns the value stored there; otherwise, returns 0 - procedure Insert (List : in out Digit_List; Index : in Positive; Value : in Digit_Value); -- If Index is a valid index into List, replaces the digit at Index with Value; -- otherwise, appends zeros to List until Index - 1 is a valid index, then appends Value to List