begin
if Ada_Version < Ada_2020 then
- Error_Msg_N
- ("aspect % is an Ada 202x feature", Aspect);
- Error_Msg_N ("\compile with -gnat2020", Aspect);
-
+ Error_Msg_Ada_2020_Feature ("aspect %", Sloc (Aspect));
return;
end if;
-- Ada 202x (AI12-0363): Full_Access_Only
elsif A_Id = Aspect_Full_Access_Only then
- if Ada_Version < Ada_2020 then
- Error_Msg_N
- ("aspect % is an Ada 202x feature", Aspect);
- Error_Msg_N ("\compile with -gnat2020", Aspect);
- end if;
+ Error_Msg_Ada_2020_Feature ("aspect %", Sloc (Aspect));
-- Ada 202x (AI12-0075): static expression functions