+2019-08-30 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/trans.c (lvalue_required_p) <N_Slice>: Adjust GNU_TYPE
+ in the recursive call.
+ <N_Selected_Component>: Likewise.
+
2019-08-30 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/utils.c (build_template): Deal with parameters
if (Prefix (gnat_parent) != gnat_node)
return 0;
- return lvalue_required_p (gnat_parent, gnu_type, constant,
- address_of_constant);
+ return lvalue_required_p (gnat_parent,
+ get_unpadded_type (Etype (gnat_parent)),
+ constant, address_of_constant);
case N_Selected_Component:
- return lvalue_required_p (gnat_parent, gnu_type, constant,
- address_of_constant);
+ return lvalue_required_p (gnat_parent,
+ get_unpadded_type (Etype (gnat_parent)),
+ constant, address_of_constant);
case N_Object_Renaming_Declaration:
/* We need to preserve addresses through a renaming. */