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!feeder.eternal-september.org!aioe.org!.POSTED.DFxaDADwSkn+6wW9Ah21PA.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Generic oddness Date: Sun, 12 Apr 2020 19:11:44 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: DFxaDADwSkn+6wW9Ah21PA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:CWK7piHwktTdWt4wmLRMBOpscW4= Xref: reader01.eternal-september.org comp.lang.ada:58351 Date: 2020-04-12T19:11:44+01:00 List-Id: Per Jakobsen writes: > Is there a sane explanation for this behavior? Possibly not, because GCC 10.0.1 (admittedly of 20200206, so a while ago) compiles without (much) complaint: $ /opt/gnat-ce-2019/bin/gnatmake -gnatwa -f test.adb gcc -c -gnatwa test.adb test.ads:3:06: warning: unit "Gen" is not referenced test.ads:21:63: abstract subprogram not allowed as generic actual gnatmake: "test.adb" compilation error but $ /opt/gcc-10.0.1/bin/gnatmake -gnatwa -f test.adb gcc -c -gnatwa test.adb test.ads:3:06: warning: unit "Gen" is not referenced gcc -c -gnatwa gen.ads gen.ads:2:09: warning: type "A" is not referenced gcc -c -gnatwa intf.ads