+2018-10-09 Ed Schonberg <schonberg@adacore.com>
+
+ * exp_ch6.adb (Add_Call_By_Copy_Node,
+ Add_Simple_Call_By_Copy_Node, Expand_Call_Helper): Reset
+ Is_True_Constant on entities used as Out or In_Out parameters in
+ calls.
+
2018-10-09 Ed Schonberg <schonberg@adacore.com>
* exp_unst.adb (Unnest_Subprogram): Do not load System to obtain
Kill_Current_Values (Temp);
Set_Is_Known_Valid (Temp, False);
+ Set_Is_True_Constant (Temp, False);
-- If type conversion, use reverse conversion on exit
if Ekind (Formal) /= E_In_Parameter then
Lhs := Outcod;
Rhs := New_Occurrence_Of (Temp, Loc);
+ Set_Is_True_Constant (Temp, False);
-- Deal with conversion
Kill_Current_Values (Ent);
Set_Last_Assignment (Ent, Sav);
Set_Is_Known_Valid (Ent, False);
+ Set_Is_True_Constant (Ent, False);
-- For all other cases, just kill the current values