Commit ca86ddcc by Francois-Xavier Coudert Committed by François-Xavier Coudert

re PR fortran/27874 (Bad interaction between bounds checking, forall and derived types)

	PR fortran/27874
	* trans-stmt.c (compute_inner_temp_size): Don't perform bounds
	checking when calculating the bounds of scalarization.

From-SVN: r115224
parent 80f06e28
2006-07-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/27874
* trans-stmt.c (compute_inner_temp_size): Don't perform bounds
checking when calculating the bounds of scalarization.
2006-07-05 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/20892
......
......@@ -1957,6 +1957,7 @@ compute_inner_temp_size (gfc_expr *expr1, gfc_expr *expr2,
gfc_loopinfo loop;
tree size;
int i;
int save_flag;
tree tmp;
*lss = gfc_walk_expr (expr1);
......@@ -1989,7 +1990,10 @@ compute_inner_temp_size (gfc_expr *expr1, gfc_expr *expr2,
loop.array_parameter = 1;
/* Calculate the bounds of the scalarization. */
save_flag = flag_bounds_check;
flag_bounds_check = 0;
gfc_conv_ss_startstride (&loop);
flag_bounds_check = save_flag;
gfc_conv_loop_setup (&loop);
/* Figure out how many elements we need. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment