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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Ada.Containers.Vectors Date: Tue, 27 Jun 2017 08:15:37 +0200 Organization: A noiseless patient Spider Message-ID: References: <3516c666-ef65-4e54-89e9-03f14f293493@googlegroups.com> Reply-To: nonlegitur@notmyhomepage.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 27 Jun 2017 06:11:48 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="f39b8daec34752d3f5ba84b397fb91e2"; logging-data="18329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CdPqjnThzw/APc0H8KaGOMfslEsOtC4o=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: <3516c666-ef65-4e54-89e9-03f14f293493@googlegroups.com> Cancel-Lock: sha1:gr9dY39/Q8spECKUn1C9Nx21sdM= Xref: news.eternal-september.org comp.lang.ada:47137 Date: 2017-06-27T08:15:37+02:00 List-Id: On 26.06.17 18:39, hnptz@yahoo.de wrote: > As a result I get "ambiguous operands for equality" for /= and =. How to resolve these ambiguities? A bit of a guess, it might be that the message is not obviously about resolving equality; if I rewrite exit when f.element(j) /= fmax(j); ... and if f.element(j) = fmax(j) then ... then my compiler responds differently. If implicit_dereference of holders is going on under the hood, this all might be an effect of a new feature, and the message could be improved by your compiler maker.