comp.lang.ada
 help / color / mirror / Atom feed
* Subtype predicates
@ 2016-08-23 20:14 Anh Vo
  2016-08-24 13:06 ` AdaMagica
  0 siblings, 1 reply; 13+ messages in thread
From: Anh Vo @ 2016-08-23 20:14 UTC (permalink / raw)


The following type definition is rejected by GNAT-GPL-2016 with error message 'prefix of "First" attribute cannot be the current instance of a scalar type'. 

type Human_Life_Span_Type is range 0 .. 130 
  with Default_Value => Human_Life_Span_Type'First;


Is it a legit syntax error based on 3.2.4 26/3 of LRM? 

Anh Vo

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-09-01 20:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-23 20:14 Subtype predicates Anh Vo
2016-08-24 13:06 ` AdaMagica
2016-08-24 16:45   ` Shark8
2016-08-24 21:18     ` Anh Vo
2016-08-24 21:32       ` Shark8
2016-08-24 21:54   ` Jeffrey R. Carter
2016-08-25  0:08     ` Shark8
2016-08-25  0:31       ` Jeffrey R. Carter
2016-08-25 17:28         ` Anh Vo
2016-08-31 18:16       ` Randy Brukardt
2016-09-01  8:09         ` J-P. Rosen
2016-09-01 20:02           ` Randy Brukardt
2016-09-01 20:16         ` Shark8

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