[Bug fortran/85625] New: Intenal Compiler Error for coindexed assignment

Bader at lrz dot de gcc-bugzilla@gcc.gnu.org
Thu May 3 08:12:00 GMT 2018


            Bug ID: 85625
           Summary: Intenal Compiler Error for coindexed assignment
           Product: gcc
           Version: 8.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Bader at lrz dot de
  Target Milestone: ---

Created attachment 44054
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44054&action=edit
reproducer for described problem

The attached Fortran file produces an ICE when built with

gfortran -fcoarray=lib dummycoarray_04_pos.f90

The error message that is issued is:


        x[i] = x

internal compiler error: in gfc_dep_resolver, at fortran/dependency.c:2258
0x6f7d66 gfc_dep_resolver(gfc_ref*, gfc_ref*, gfc_reverse*)
0x748bc5 conv_caf_send
0x74f085 gfc_conv_intrinsic_subroutine(gfc_code*)
0x701e52 trans_code
0x7653d3 gfc_trans_if_1
0x76d78a gfc_trans_if(gfc_code*)
0x701db7 trans_code
0x72812b gfc_generate_function_code(gfc_namespace*)
0x7056d9 gfc_generate_module_code(gfc_namespace*)
0x6b8dab translate_all_program_units
0x6b8dab gfc_parse_file()
0x6ff14f gfc_be_parse_file
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Replacing the RHS by an auxiliary variable that holds a copy of x does not
trigger the error. However, since significant changes to existing codes may be
required, I think this is a quite serious regression and should be fixed soon.

More information about the Gcc-bugs mailing list