As documented at the end of gen_il-gen-gen_entities.adb, E_Subprogram_Type
is part of Scope_Kind but, unlike what is said, it lacks Scope_Depth_Value.
gcc/ada/ChangeLog:
* gen_il-gen-gen_entities.adb (E_Subprogram_Type): Add the missing
Scope_Depth_Value field.
Sm (Extra_Accessibility_Of_Result, Node_Id),
Sm (Extra_Formals, Node_Id),
Sm (Extra_Formals_Known, Flag),
- Sm (Needs_No_Actuals, Flag)));
+ Sm (Needs_No_Actuals, Flag),
+ Sm (Scope_Depth_Value, Unat)));
Ab (Overloadable_Kind, Entity_Kind,
(Sm (Renamed_Or_Alias, Node_Id),