* [patch, Fortran testsuite, committed] Fix PR 98156
@ 2020-12-06 9:19 Thomas Koenig
0 siblings, 0 replies; only message in thread
From: Thomas Koenig @ 2020-12-06 9:19 UTC (permalink / raw)
To: fortran; +Cc: gcc-patches
Hello world,
I just committed the attached patch as obvious and simple.
Best regards
Thomas
Author: Thomas Koenig <tkoenig@gcc.gnu.org>
Date: 2020-12-06 10:14:13 +0100
Upper cobound is determined by num_images(), not this_image().
gcc/testsuite/ChangeLog:
PR testsuite/98156
* gfortran.dg/coarray/alloc_comp_1.f90: Upper cobound is
determined by num_images(), not this_image().
diff --git a/gcc/testsuite/gfortran.dg/coarray/alloc_comp_1.f90
b/gcc/testsuite/gfortran.dg/coarray/alloc_comp_1.f90
index f809a5f4d11..cf3ece2523b 100644
--- a/gcc/testsuite/gfortran.dg/coarray/alloc_comp_1.f90
+++ b/gcc/testsuite/gfortran.dg/coarray/alloc_comp_1.f90
@@ -10,7 +10,7 @@ allocate (a%caf[3:*])
a%caf = 7
if (a%caf /= 7) STOP 1
if (any (lcobound (a%caf) /= [ 3 ]) &
- .or. ucobound (a%caf, dim=1) /= this_image ()+2) &
+ .or. ucobound (a%caf, dim=1) /= num_images ()+2) &
STOP 2
deallocate (a%caf)
end
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-06 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06 9:19 [patch, Fortran testsuite, committed] Fix PR 98156 Thomas Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).