@@ -5374,7 +5374,6 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
53745374 bool extent_mismatch = false;
53755375 /* Set when the first non-scalar array reference is encountered. */
53765376 bool in_array_ref = false;
5377- bool array_extent_fixed = false;
53785377 /* Set when remote data is to be accessed through the global dynamic window. */
53795378 bool access_data_through_global_win = false;
53805379 /* Set when the remote descriptor is to accessed through the global window. */
@@ -5574,6 +5573,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
55745573 /* Do further checks, when the source is not scalar. */
55755574 else if (delta != 1 )
55765575 {
5576+ in_array_ref = true;
55775577 /* When the realloc is required, then no extent may have
55785578 been set. */
55795579 extent_mismatch = GFC_DESCRIPTOR_EXTENT (dst ,
@@ -5615,10 +5615,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
56155615 size *= (ptrdiff_t )delta ;
56165616 }
56175617 if (in_array_ref )
5618- {
5619- array_extent_fixed = true;
5620- in_array_ref = false;
5621- }
5618+ in_array_ref = false;
56225619 break ;
56235620 case CAF_REF_STATIC_ARRAY :
56245621 for (i = 0 ; riter -> u .a .mode [i ] != CAF_ARR_REF_NONE ; ++ i )
@@ -5701,6 +5698,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
57015698 /* Do further checks, when the source is not scalar. */
57025699 else if (delta != 1 )
57035700 {
5701+ in_array_ref = true;
57045702 /* When the realloc is required, then no extent may have
57055703 been set. */
57065704 extent_mismatch = GFC_DESCRIPTOR_EXTENT (dst ,
@@ -5721,10 +5719,7 @@ PREFIX (send_by_ref) (caf_token_t token, int image_index,
57215719 size *= (ptrdiff_t )delta ;
57225720 }
57235721 if (in_array_ref )
5724- {
5725- array_extent_fixed = true;
5726- in_array_ref = false;
5727- }
5722+ in_array_ref = false;
57285723 break ;
57295724 default :
57305725 caf_runtime_error (unknownreftype , stat , NULL , 0 );
0 commit comments