Skip to content

Commit b0cd28f

Browse files
committed
Fix compile-time dyadic operators over array constructors with repetition counts.
Fixes #138.
1 parent 4e7a342 commit b0cd28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/flang1/flang1exe/semutil2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10462,7 +10462,7 @@ eval_init_op(int op, ACL *lop, int ldtype, ACL *rop, int rdtype, int sptr,
1046210462
l_repeatc = get_int_cval(A_SPTRG(cur_lop->repeatc));
1046310463
else
1046410464
l_repeatc = 1;
10465-
if (cur_lop->repeatc)
10465+
if (cur_rop->repeatc)
1046610466
r_repeatc = get_int_cval(A_SPTRG(cur_rop->repeatc));
1046710467
else
1046810468
r_repeatc = 1;

0 commit comments

Comments
 (0)