[Ada] Error on T'Reduce of when T is not a container
authorBob Duff <duff@adacore.com>
Fri, 18 Dec 2020 19:59:45 +0000 (14:59 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 29 Apr 2021 08:00:49 +0000 (04:00 -0400)
gcc/ada/

* sem_attr.adb (Analyze_Attribute): Change "$" to "&".
Otherwise, Errout will trip over an uninitialized (invalid)
variable (Error_Msg_Unit_1).

gcc/ada/sem_attr.adb

index 34865f4..2226ece 100644 (file)
@@ -5682,7 +5682,7 @@ package body Sem_Attr is
                   null;
                else
                   Error_Msg_NE
-                    ("cannot apply Reduce to object of type$", N, Typ);
+                    ("cannot apply Reduce to object of type&", N, Typ);
                end if;
 
             elsif Present (Expressions (Stream))