===================================================================
@@ -16462,8 +16462,9 @@
-- the entities within it).
if (Is_Implementation_Defined (Val)
- or else
- Is_Implementation_Defined (Scope (Val)))
+ or else
+ (Present (Scope (Val))
+ and then Is_Implementation_Defined (Scope (Val))))
and then not (Ekind_In (Val, E_Package, E_Generic_Package)
and then Is_Library_Level_Entity (Val))
then
===================================================================
@@ -735,6 +735,7 @@
Build_Signed_Integer_Type
(Standard_Short_Integer, Standard_Short_Integer_Size);
+ Set_Is_Implementation_Defined (Standard_Short_Integer);
Build_Signed_Integer_Type
(Standard_Integer, Standard_Integer_Size);