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

            Bug ID: 87337
           Summary: Internal compiler error on coarrays
           Product: gcc
           Version: 7.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexey.burluka at northumbria dot ac.uk
  Target Milestone: ---

Created attachment 44707
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44707&action=edit
The fortran code producing the bug.

Attempt to compile a program with co-arrays produces:

internal compiler error: in gfc_conv_descriptor_token, at
fortran/trans-array.c:305
0x6a13b0 gfc_conv_descriptor_token(tree_node*)
        ../../srcdir/gcc/fortran/trans-array.c:303
0x6aa72d structure_alloc_comps
        ../../srcdir/gcc/fortran/trans-array.c:8726
0x6c6dfc gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool, bool,
bool)
        ../../srcdir/gcc/fortran/trans-expr.c:8831
0x6d64ac gfc_trans_assignment_1
        ../../srcdir/gcc/fortran/trans-expr.c:10127
0x706a89 gfc_trans_allocate(gfc_code*)
        ../../srcdir/gcc/fortran/trans-stmt.c:6357
0x69bb87 trans_code
        ../../srcdir/gcc/fortran/trans.c:1976
0x6c0cf7 gfc_generate_function_code(gfc_namespace*)
        ../../srcdir/gcc/fortran/trans-decl.c:6335
0x655196 translate_all_program_units
        ../../srcdir/gcc/fortran/parse.c:6075
0x655196 gfc_parse_file()
        ../../srcdir/gcc/fortran/parse.c:6275
0x69848f gfc_be_parse_file
        ../../srcdir/gcc/fortran/f95-lang.c:204

The compilation/linking command is:
gfortran -g -ffree-form -Wall -fcheck=all -fcoarray=lib -o bl1 bl_bug.f95

Reply via email to