gcc/ada/ChangeLog:
* sem_ch13.adb (Analyze_One_Aspect): change the call to
`Error_Msg_GNAT_Extension` to allow this aspect in core
extensions. Put the code path in core extensions.
* exp_util.adb (Name_Of_Controlled_Prim_Op): Put the code path
in core extensions
-- The aspect Finalizable may change the name of the primitives when
-- present, but it's a GNAT extension.
- if All_Extensions_Allowed then
+ if Core_Extensions_Allowed then
declare
Rep : constant Node_Id :=
Get_Rep_Item (Typ, Name_Finalizable, Check_Parents => True);
end if;
when Aspect_Finalizable =>
- if not All_Extensions_Allowed then
+ if not Core_Extensions_Allowed then
Error_Msg_Name_1 := Nam;
- Error_Msg_GNAT_Extension ("aspect %", Loc);
+ Error_Msg_GNAT_Extension
+ ("aspect %", Loc, Is_Core_Extension => True);
goto Continue;
elsif not Is_Type (E) then