gcc/ada/
* sem_util.adb (Is_Potentially_Unevaluated): Protect reading
attribute Etype.
N_Or_Else,
N_Quantified_Expression)
and then not (Nkind (Par) = N_Aggregate
+ and then Present (Etype (Par))
+ and then Etype (Par) /= Any_Composite
and then Is_Array_Type (Etype (Par)))
loop
Expr := Par;
return True;
elsif Nkind (Choice) = N_Identifier
+ and then Present (Etype (Choice))
and then Present (Scalar_Range (Etype (Choice)))
and then
Non_Static_Or_Null_Range (Scalar_Range (Etype (Choice)))