https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94958

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damian at sourceryinstitute 
dot or
                   |                            |g

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I have tested

diff -up ../_clean/gcc/fortran/trans-array.c gcc/fortran/trans-array.c
--- ../_clean/gcc/fortran/trans-array.c 2020-06-13 03:11:46.000000000 +0200
+++ gcc/fortran/trans-array.c   2020-07-25 12:16:09.000000000 +0200
@@ -9724,7 +9724,8 @@ gfc_bcast_alloc_comp (gfc_symbol *derive
   args.image_index = image_index;
   args.stat = stat;
   args.errmsg = errmsg;
-  args.errmsg = errmsg_len;
+  args.errmsg_len = errmsg_len;
+  gcc_unreachable ();

   if (rank == 0)
     {

without regression, so the use of gfc_bcast_alloc_comp is not covered by the
testsuite.

However building OpenCoarrays-2.9.0 failed with

/opt/OpenCoarrays-2.9.0/src/tests/unit/collectives/co_broadcast_allocatable_components.f90:42:0:

   42 |    call co_broadcast(alloc_message,source_image=sender)
      | 
internal compiler error: in gfc_bcast_alloc_comp, at fortran/trans-array.c:9728

After removing the gcc_unreachable, I have been able to build and test
successfully OpenCoarrays-2.9.0 (100% tests passed, 0 tests failed out of 79).

I don't know if all the tests are OK without the patch. If so there may be a
coverage problem.

I don't know either if Alessandro Fanfarillo is still around, CCING Damian
Rouson.

Reply via email to