This patch fixes a crash in the compiler whereby calculating the accessibility
level of of a local variable whose original expression is an 'First on an
array type led to an error during compilation.
gcc/ada/
* accessibility.adb (Accessibility_Level): Add cases for 'First
and 'Last.
-- so handle these cases explicitly.
elsif Attribute_Name (E)
- in Name_Old | Name_Loop_Entry | Name_Result | Name_Super
+ in Name_Old |
+ Name_Loop_Entry |
+ Name_Result |
+ Name_Super |
+ Name_Tag |
+ Name_Safe_First |
+ Name_Safe_Last |
+ Name_First |
+ Name_Last
then
-- Named access types