comp.lang.ada
 help / color / mirror / Atom feed
From: Kenneth Wolcott <kennethwolcott@gmail.com>
Subject: Rosetta Code task Proper divisors fails to compile
Date: Tue, 25 Jul 2023 21:49:49 -0700 (PDT)	[thread overview]
Message-ID: <71e087e7-bfb2-4659-b218-134fb265d479n@googlegroups.com> (raw)

Hi;

  Trying to understand (and use) a Rosetta Code task (Proper divisors)...

https://rosettacode.org/wiki/Proper_divisors#Ada

  it fails to compile

gnatmake -vh ./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 -I./ -I- ./proper_divisors.adb
generic_divisors.ads:11:08: error: (Ada 2005) cannot copy object of a limited 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

Why does this work for the the submitter of the Rosetta Code task and not for me?

Thanks,
Ken Wolcott

             reply	other threads:[~2023-07-26  4:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-26  4:49 Kenneth Wolcott [this message]
2023-07-26  8:36 ` Rosetta Code task Proper divisors fails to compile Jeffrey R.Carter
2023-07-26 18:30   ` Kenneth Wolcott
2023-07-26 19:57     ` Jeffrey R.Carter
2023-07-26 22:26       ` Kenneth Wolcott
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox