aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ada/sem_res.adb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb
index 6867c8f..ef3b877 100644
--- a/gcc/ada/sem_res.adb
+++ b/gcc/ada/sem_res.adb
@@ -8124,7 +8124,8 @@ package body Sem_Res is
Attribute_Name (Parent (N)) in Name_Constrained
| Name_First
| Name_Last
- | Name_Length)
+ | Name_Length
+ | Name_Range)
and then not Is_By_Reference_Type (Etype (E))
and then not Is_Aliased (E)
then