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 X-Received: by 10.98.193.129 with SMTP id i123mr30261586pfg.9.1473094736308; Mon, 05 Sep 2016 09:58:56 -0700 (PDT) X-Received: by 10.157.8.164 with SMTP id 33mr460271otf.2.1473094736251; Mon, 05 Sep 2016 09:58:56 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!e124no1379643ith.0!news-out.google.com!b4ni10654iti.0!nntp.google.com!i184no1371311itf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 5 Sep 2016 09:58:55 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.218.37.33; posting-account=W2gdXQoAAADxIuhBWhPFjUps3wUp4RhQ NNTP-Posting-Host: 76.218.37.33 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <19b271be-529d-4888-a040-dbd22be08114@googlegroups.com> Subject: Re: Error popping up after "unrelated" generic instantiation From: Stephen Leake Injection-Date: Mon, 05 Sep 2016 16:58:56 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31705 Date: 2016-09-05T09:58:55-07:00 List-Id: 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.