+2015-09-14 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/utils2.c (gnat_rewrite_reference) <COMPOUND_EXPR>: Add
+ another acceptable pattern for the RHS.
+
2015-07-24 Micahel Darling <darlingm@gmail.com>
PR other/66259
gcc_assert (*init == NULL_TREE);
*init = TREE_OPERAND (ref, 0);
/* We expect only the pattern built in Call_to_gnu. */
- gcc_assert (DECL_P (TREE_OPERAND (ref, 1)));
+ gcc_assert (DECL_P (TREE_OPERAND (ref, 1))
+ || (TREE_CODE (TREE_OPERAND (ref, 1)) == COMPONENT_REF
+ && DECL_P (TREE_OPERAND (TREE_OPERAND (ref, 1), 0))));
return TREE_OPERAND (ref, 1);
case CALL_EXPR: