https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78682
Bug ID: 78682 Summary: ICE calling (locally) a TBP of a remote CAF derived type Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: stefano.zaghi at cnr dot it Target Milestone: --- Created attachment 40252 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40252&action=edit the MCVE reproducing the ICE Dear all, I get an ICE when I try to call (locally) a type-bound-procedure of derived-type coarray on a remote image, see the attached MCVE. I know that very very probably my code is invalid with respect the current standard, but because with GNU gfortran 6.2.1 I obtain the following Internal Compiler Error, I would like to let you know. Compilation/Error results gfortran -fcoarray=lib gfortran_ice_caf.f90 gfortran_ice_caf.f90:31:0: if (this_image()==2) call core_caf[1]%core_value_print internal compiler error: in gfc_get_tree_for_caf_expr, at fortran/trans-expr.c:1818 Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. Architecture details Linux 4.8.8-2-ARCH #1 SMP PREEMPT Thu Nov 17 14:51:03 CET 2016 x86_64 GNU/Linux Intel(R) Xeon(R) CPU X5650@2.67GHz GNU Fortran (GCC) 6.2.1 20160830 My best regards. P.S. thank you very very much for your work, you are my superheroes!