comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Predicate and value attribute
Date: Tue, 26 Jan 2016 12:41:19 -0800 (PST)
Date: 2016-01-26T12:41:19-08:00	[thread overview]
Message-ID: <010749e4-18e5-40c9-8f37-0db634e91472@googlegroups.com> (raw)
In-Reply-To: <n88ce7$4sp$1@dont-email.me>

On Tuesday, January 26, 2016 at 10:06:42 AM UTC-8, Jeffrey R. Carter wrote:
> On 01/26/2016 04:09 AM, Xavier Petit wrote:
> > 
> > procedure Sandbox is
> >    subtype Number is String
> >      with Dynamic_Predicate => Integer'Value (Number) in -1 .. 5;
> > 
> >    subtype Number2 is String
> >      with Dynamic_Predicate => Integer'Value (Number2) in -1 | 5;
> > 
> >    function Check_Number3 (Item : String) return Boolean
> >    is
> >      (Integer'Value (Item) in -1 .. 5);
> > 
> >    subtype Number3 is String
> >      with Dynamic_Predicate => Check_Number3 (Number3);
> > 
> >    Test : constant Number := "-1";
> >    Test2 : constant Number2 := "-1";
> >    Test3 : constant Number3 := "-1";
> > 
> > begin
> >    null;
> > end;
> 
> With GNAT 4.9.2 this compiles without problem.
 
A bug report should be in order. By the way, GNATMAKE GPL 2015 (20150428-49) was based on gcc version 4.9.3

Anh Vo


  reply	other threads:[~2016-01-26 20:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-23 11:16 Predicate and value attribute Xavier Petit
2016-01-24 11:38 ` AdaMagica
2016-01-25  8:28 ` Jacob Sparre Andersen
2016-01-25 14:52 ` Xavier Petit
2016-01-26  0:28   ` Anh Vo
2016-01-26 11:09     ` Xavier Petit
2016-01-26 18:06       ` Jeffrey R. Carter
2016-01-26 20:41         ` Anh Vo [this message]
2016-01-26 20:43       ` Simon Wright
2016-01-27 22:02         ` Xavier Petit
2016-01-28  7:56           ` Simon Wright
replies disabled

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