comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Is this an error in compiler
Date: Mon, 12 Sep 2022 08:05:18 +0100	[thread overview]
Message-ID: <lyleqphy35.fsf@pushface.org> (raw)
In-Reply-To: jo6ahtFfaipU1@mid.individual.net

Niklas Holsti <niklas.holsti@tidorum.invalid> writes:

> I don't find these "raise .. when" or "return .. when" constructs in
> the Ada 2022 RM draft, so I don't think the ARG has adopted them
> (yet). I suspect they are GNAT extensions, as is the ability to make a
> subtype of String with a fixed lower index bound of 1 but an
> unconstrained upper bound (1 .. <>), as also done in the OP's code.

Indeed.

  c0a.adb:7:37: error: fixed-lower-bound array is a GNAT specific extension
  c0a.adb:7:37: error: unit must be compiled with -gnatX switch
  c0a.adb:26:28: error: return when statement is a GNAT specific extension
  c0a.adb:26:28: error: unit must be compiled with -gnatX switch
  c0a.adb:27:59: error: raise when statement is a GNAT specific extension
  c0a.adb:27:59: error: unit must be compiled with -gnatX switch

  parent reply	other threads:[~2022-09-12  7:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-11  7:19 Is this an error in compiler reinert
2022-09-11  8:10 ` Simon Wright
2022-09-11 10:52   ` reinert
2022-09-11 12:30   ` Jeffrey R.Carter
2022-09-11 12:59     ` Dmitry A. Kazakov
2022-09-11 14:44     ` Niklas Holsti
2022-09-11 15:47       ` Jeffrey R.Carter
2022-09-11 16:47         ` reinert
2022-09-11 17:18           ` Dmitry A. Kazakov
2022-09-12  7:05       ` Simon Wright [this message]
2022-09-11 15:14   ` Oliver Kellogg
replies disabled

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