]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ada/sem_util.adb
[Ada] Unnesting bugs with array renamings generated for quantified expr
[thirdparty/gcc.git] / gcc / ada / sem_util.adb
index 650226e96ec02852c2a84431ffb0e94b2af77892..064e613b4fc1e81c71481658a246bc96569fb9cb 100644 (file)
@@ -10181,6 +10181,7 @@ package body Sem_Util is
    begin
       R := N;
       while Is_Entity_Name (R)
+        and then Is_Object (Entity (R))
         and then Present (Renamed_Object (Entity (R)))
       loop
          R := Renamed_Object (Entity (R));