]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/ada/exp_util.ads
ada: Fix crash on concurrent type aggregate
[gcc.git] / gcc / ada / exp_util.ads
index 267a127ec5e177b7bb695375b5fa99f0285a0484..d15e4f908654c5e5eab15e6f798da23d3df5844d 100644 (file)
@@ -941,9 +941,13 @@ package Exp_Util is
    function Make_Tag_Assignment_From_Type
      (Loc    : Source_Ptr;
       Target : Node_Id;
-      Typ    : Entity_Id) return Node_Id;
+      Typ    : Entity_Id) return Node_Id
+   with
+     Pre => (not Is_Concurrent_Type (Typ));
    --  Return an assignment of the tag of tagged type Typ to prefix Target,
-   --  which must be a record object of a descendant of Typ.
+   --  which must be a record object of a descendant of Typ. Typ cannot be a
+   --  concurrent type; for concurrent types, the corresponding record types
+   --  should be passed to this function instead.
 
    function Make_Variant_Comparison
      (Loc      : Source_Ptr;
This page took 0.02736 seconds and 5 git commands to generate.