From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:102:b0:402:b71e:90e5 with SMTP id u2-20020a05622a010200b00402b71e90e5mr8114qtw.4.1690396213326; Wed, 26 Jul 2023 11:30:13 -0700 (PDT) X-Received: by 2002:a05:6808:1888:b0:38d:ca0a:8e18 with SMTP id bi8-20020a056808188800b0038dca0a8e18mr619513oib.2.1690396213099; Wed, 26 Jul 2023 11:30:13 -0700 (PDT) Path: eternal-september.org!news.eternal-september.org!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 26 Jul 2023 11:30:12 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=98.59.238.112; posting-account=oHOvdQoAAACYgyEBjgPNvKFOGxg8pNns NNTP-Posting-Host: 98.59.238.112 References: <71e087e7-bfb2-4659-b218-134fb265d479n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Rosetta Code task Proper divisors fails to compile From: Kenneth Wolcott Injection-Date: Wed, 26 Jul 2023 18:30:13 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2205 Xref: news.eternal-september.org comp.lang.ada:65452 List-Id: On Wednesday, July 26, 2023 at 1:36:15=E2=80=AFAM UTC-7, Jeffrey R.Carter w= rote: > For some reason your gnatmake seems to be defaulting to -gnat05 mode. Thi= s code=20 > has an expression function, which is Ada 12, so try adding -gnat12 to the= command.=20 >=20 > You also should not need to put "./" in front of the file name, though I = don't=20 > see how that would make a difference.=20 Hi Jeff; Thank you for your suggestion. Doesn't seem to have any effect. (*SIGH*) gnatmake -vh -gnat2012 proper_divisors.adb GNATMAKE 13.1.0 Copyright (C) 1992-2023, Free Software Foundation, Inc. "proper_divisors.ali" being checked ... -> "proper_divisors.ali" missing. gcc -c -gnat2012 proper_divisors.adb generic_divisors.ads:11:08: error: (Ada 2005) cannot copy object of a limit= ed type (RM-2005 6.5(5.5/2)) generic_divisors.ads:11:08: error: return by reference not permitted in Ada= 2005 End of compilation gnatmake: "proper_divisors.adb" compilation error Ken