[Ada] Expansion of Ada2012 predicate checks for type conversions

2011-08-05 Thread Arnaud Charlet
This patch fixes an infinite recursion in the application of predicate checks to type conversions. The following must compile quietly: gcc -c -gnat12 ./why-conversions.ads --- with Why.Ids; use Why.Ids; package Why.Conversions is function "+" (Id : W_Unused_At_Start_OId) return

Re: [Ada] Expansion of Ada2012 predicate checks for type conversions

2011-08-18 Thread Gerald Pfeifer
On Fri, 5 Aug 2011, Arnaud Charlet wrote: > 2011-08-05 Ed Schonberg > > * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate > check, indicate that the copy of the original node does not come from > source, to prevent an infinite recursion of the expansion. Fo

Re: [Ada] Expansion of Ada2012 predicate checks for type conversions

2011-08-18 Thread Arnaud Charlet
> > 2011-08-05 Ed Schonberg > > > > * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a > > predicate > > check, indicate that the copy of the original node does not come from > > source, to prevent an infinite recursion of the expansion. > > For ChangeLog entries we usu

Re: [Ada] Expansion of Ada2012 predicate checks for type conversions

2011-08-18 Thread Robert Dewar
On 8/18/2011 5:33 AM, Arnaud Charlet wrote: 2011-08-05 Ed Schonberg * exp_ch4.adb (Expand_N_Type_Conversion): When expanding a predicate check, indicate that the copy of the original node does not come from source, to prevent an infinite recursion of the expansio