[Ada] Recognize delta and extension aggregates as objects
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 1 Oct 2020 20:23:24 +0000 (22:23 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 24 Nov 2020 10:16:04 +0000 (05:16 -0500)
gcc/ada/

* sem_util.adb (Is_Object_Reference): Delta and extension
aggregates are objects.

gcc/ada/sem_util.adb

index 01e99a5f3c5db0b4b6699885239f1d44bfd9d287..1190cfe21bf6bb48c1ee028eab767807da21f1f0 100644 (file)
@@ -18324,7 +18324,10 @@ package body Sem_Util is
 
             --  In Ada 95 an aggregate is an object reference
 
-            when N_Aggregate =>
+            when N_Aggregate
+               | N_Delta_Aggregate
+               | N_Extension_Aggregate
+            =>
                return Ada_Version >= Ada_95;
 
             --  A string literal is not an object reference, but it might come