Message ID | 20171108173239.GA27934@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Crash on access-to-object in SPARK | expand |
Index: exp_spark.adb =================================================================== --- exp_spark.adb (revision 254542) +++ exp_spark.adb (working copy) @@ -349,7 +349,7 @@ Loc : constant Source_Ptr := Sloc (N); Obj_Id : constant Entity_Id := Defining_Entity (N); Nam : constant Node_Id := Name (N); - Typ : constant Entity_Id := Etype (Subtype_Mark (N)); + Typ : constant Entity_Id := Etype (Obj_Id); begin -- Transform a renaming of the form