Recognize references to attributes Old, Overlaps_Storage and Result as
language-defined in Ada 2012 and implementation-defined in earlier
versions of Ada. Other attributes introduced by Ada 2012 RM are
correctly categorized.
This change only affects code with restriction
No_Implementation_Attributes.
gcc/ada/
* sem_attr.adb (Attribute_12): Add attributes Old,
Overlaps_Storage and Result.
(Attribute_First_Valid |
Attribute_Has_Same_Storage |
Attribute_Last_Valid |
- Attribute_Max_Alignment_For_Allocation => True,
+ Attribute_Max_Alignment_For_Allocation |
+ Attribute_Old |
+ Attribute_Overlaps_Storage |
+ Attribute_Result => True,
others => False);
-- The following array is the list of attributes defined in the Ada 2022