https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68415
Bug ID: 68415 Summary: Internal compiler error on Class variable containing array of allocatable polymorphic variable Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: talebi.hossein at gmail dot com Target Milestone: --- Created attachment 36761 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36761&action=edit fortran module The compilation of the attached file gives the following error. If I change the class on line 31, to type it will not happen. Or if I remove the line 20 it will work as well. This might be related to the bug 59678. define_class.f90:39:0: End Module define_class 1 internal compiler error: in gfc_conv_expr_descriptor, at fortran/trans-array.c:6534 0x6a87b0 gfc_conv_expr_descriptor(gfc_se*, gfc_expr*) ../../src/gcc/fortran/trans-array.c:6534 0x6cb79b gfc_trans_pointer_assignment(gfc_expr*, gfc_expr*) ../../src/gcc/fortran/trans-expr.c:7635 0x6cbe3c gfc_reset_vptr(stmtblock_t*, gfc_expr*) ../../src/gcc/fortran/trans-expr.c:358 0x6f8065 gfc_trans_deallocate(gfc_code*) ../../src/gcc/fortran/trans-stmt.c:5993 0x696e57 trans_code ../../src/gcc/fortran/trans.c:1824 0x6edd63 gfc_trans_if_1 ../../src/gcc/fortran/trans-stmt.c:1115 0x6f409a gfc_trans_if(gfc_code*) ../../src/gcc/fortran/trans-stmt.c:1146 0x696f47 trans_code ../../src/gcc/fortran/trans.c:1762 0x6f53b1 gfc_trans_simple_do ../../src/gcc/fortran/trans-stmt.c:1654 0x6f53b1 gfc_trans_do(gfc_code*, tree_node*) ../../src/gcc/fortran/trans-stmt.c:1817 0x696f1a trans_code ../../src/gcc/fortran/trans.c:1774 0x6b6bc3 gfc_generate_function_code(gfc_namespace*) ../../src/gcc/fortran/trans-decl.c:5851 0x69a3a1 gfc_generate_module_code(gfc_namespace*) ../../src/gcc/fortran/trans.c:2036 0x654c1d translate_all_program_units ../../src/gcc/fortran/parse.c:5330 0x654c1d gfc_parse_file() ../../src/gcc/fortran/parse.c:5540 0x694235 gfc_be_parse_file ../../src/gcc/fortran/f95-lang.c:229 Please submit a full bug report, with preprocessed source if appropriate.