comp.lang.ada
 help / color / mirror / Atom feed
From: Jere <jhb.chat@gmail.com>
Subject: Re: expression functions and raise expressions
Date: Sat, 3 Mar 2018 14:53:44 -0800 (PST)
Date: 2018-03-03T14:53:44-08:00	[thread overview]
Message-ID: <ec82b3d3-80c4-4333-97bf-f9fb3ed822a4@googlegroups.com> (raw)
In-Reply-To: <p7ev2l$vhh$1@dont-email.me>

On Saturday, March 3, 2018 at 3:03:36 PM UTC-5, Jeffrey R. Carter wrote:
> On 03/03/2018 07:39 PM, Jere wrote:
> > 
> > GNAT GPL 2017 accepts it, but FSF GNAT 7.2 for mingw64 on Win10
> > gives some errors:
> > test.ads:328:11: (Ada 2005) cannot copy object of a limited type (RM-2005 6.5(5.5/2))
> > test.ads:328:11: return by reference not permitted in Ada 2005
> 
> These messages seem to indicate -gnat05 mode.
> 
> > I am compiling with Ada2012 mode (-gnat12 option)
> 
> If that's the case, then this does look like a compiler error.
> 
I doubled checked the GPR file and it was indeed 2012, so strange error
indeed.


  reply	other threads:[~2018-03-03 22:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-03 18:39 expression functions and raise expressions Jere
2018-03-03 20:03 ` Jeffrey R. Carter
2018-03-03 22:53   ` Jere [this message]
2018-03-03 20:54 ` Simon Wright
2018-03-03 22:54   ` Jere
2018-03-05 20:21 ` Randy Brukardt
2018-03-07 22:39   ` Jere
replies disabled

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