This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/83319] [7/8 Regression] ICE on use of allocatable component in derived type coarray defined in module


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

Ethan Gutmann <gutmann at ucar dot edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gutmann at ucar dot edu

--- Comment #1 from Ethan Gutmann <gutmann at ucar dot edu> ---
I see this same problem in gcc 7.1.0.  Note that with -fcoarray=single there
are no errors. 

$ gfortran --version
GNU Fortran (GCC) 7.1.0

$ gfortran -fcoarray=single -c allocatable-component-of-dt-coarray.f90 

$ gfortran -fcoarray=lib -c allocatable-component-of-dt-coarray.f90 
test.f90:8:0:

   use foo_module

internal compiler error: in gfc_conv_descriptor_token, at
fortran/trans-array.c:305
0x6c8d20 gfc_conv_descriptor_token(tree_node*)
        ../../gcc-7.1.0/gcc/fortran/trans-array.c:303
0x6f5538 gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool)
        ../../gcc-7.1.0/gcc/fortran/trans-expr.c:7530
0x6efb2f gfc_conv_structure(gfc_se*, gfc_expr*, int)
        ../../gcc-7.1.0/gcc/fortran/trans-expr.c:7649
0x6fdb0e gfc_trans_assignment_1
        ../../gcc-7.1.0/gcc/fortran/trans-expr.c:9927
0x6dda60 generate_coarray_sym_init
        ../../gcc-7.1.0/gcc/fortran/trans-decl.c:5185
0x6adf92 do_traverse_symtree
        ../../gcc-7.1.0/gcc/fortran/symbol.c:4009
0x6dd165 generate_coarray_init
        ../../gcc-7.1.0/gcc/fortran/trans-decl.c:5235
0x6e8b44 gfc_generate_function_code(gfc_namespace*)
        ../../gcc-7.1.0/gcc/fortran/trans-decl.c:6270
0x67cf06 translate_all_program_units
        ../../gcc-7.1.0/gcc/fortran/parse.c:6074
0x67cf06 gfc_parse_file()
        ../../gcc-7.1.0/gcc/fortran/parse.c:6274
0x6bfecf gfc_be_parse_file
        ../../gcc-7.1.0/gcc/fortran/f95-lang.c:204
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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]