[Ada] Warn on slices of the form A (subtype) for all objects
gcc/ada/ * sem_eval.adb (Eval_Slice): Emit warning not just for constants, but for any objects.
This commit is contained in:
parent
433b2e91f9
commit
81c629f8f1
@ -3961,7 +3961,7 @@ package body Sem_Eval is
|
||||
T : constant Entity_Id := Etype (E);
|
||||
|
||||
begin
|
||||
if Ekind (E) = E_Constant
|
||||
if Is_Object (E)
|
||||
and then Is_Array_Type (T)
|
||||
and then Is_Entity_Name (Drange)
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user