From 74c49505d071e2d5d81a8b9e1708f35f81eab09d Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Wed, 28 Nov 2012 22:42:17 +0100 Subject: re PR fortran/52161 (Internal compiler errors with -fcheck=bounds in coarray tests) 2012-11-28 Tobias Burnus PR fortran/52161 * trans-stmt.c (gfc_trans_sync): Fix bound checking. 2012-11-28 Tobias Burnus PR fortran/52161 * coarray/sync_3.f90: New. From-SVN: r193908 --- gcc/fortran/trans-stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/fortran/trans-stmt.c') diff --git a/gcc/fortran/trans-stmt.c b/gcc/fortran/trans-stmt.c index bdc559b..0c88c4a 100644 --- a/gcc/fortran/trans-stmt.c +++ b/gcc/fortran/trans-stmt.c @@ -795,7 +795,7 @@ gfc_trans_sync (gfc_code *code, gfc_exec_op type) gfc_trans_runtime_check (true, false, cond, &se.pre, &code->expr1->where, "Invalid image number " "%d in SYNC IMAGES", - fold_convert (integer_type_node, se.expr)); + fold_convert (integer_type_node, images)); } /* Per F2008, 8.5.1, a SYNC MEMORY is implied by calling the -- cgit v1.1