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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Error popping up after "unrelated" generic instantiation Date: Tue, 6 Sep 2016 11:22:12 +0200 Organization: A noiseless patient Spider Message-ID: References: <19b271be-529d-4888-a040-dbd22be08114@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 6 Sep 2016 09:22:12 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="409ea068438c2552e8874a5d710c759d"; logging-data="31595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4HimIbZkDL+hfA5r4tJXY" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: <19b271be-529d-4888-a040-dbd22be08114@googlegroups.com> Cancel-Lock: sha1:ORIRwSjagli/tDXCIvz0FX7UIJU= Xref: news.eternal-september.org comp.lang.ada:31708 Date: 2016-09-06T11:22:12+02:00 List-Id: On 05/09/16 18:58, Stephen Leake wrote: > On Saturday, September 3, 2016 at 8:54:17 AM UTC-5, Alejandro R. Mosteo wrote: >> This builds (and runs) correctly. However, uncommenting line 23 in >> src/main/rx-examples.ads results in the aforementioned error: >> >> rx-examples-minimal.adb:22:06: incorrect use of "Subscribe" >> (and more similar instances in the same file). > > I can reproduce this with GNAT GPL 2016 on Windows 8.1. > > There are declarations of "Subscribe" as procedure and package in the code; apparently the compiler is confusing one of those. But it shouldn't; this looks like a compiler bug. Thank you for the confirmation. Álex.