https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82720
Bug ID: 82720 Summary: [PDT] ICE in gfc_conv_component_ref, at fortran/trans-expr.c:2400 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Another test case : $ cat z1.f90 program p type t(a) integer, len :: a character(len=a) :: c end type type(t(:)), allocatable :: x allocate (t(2) :: x) x = t(2,'ab') print *, x%a print *, x%c print *, x end $ gfortran-8-20171022 -c z1.f90 z1.f90:11:0: print *, x%c internal compiler error: in gfc_conv_component_ref, at fortran/trans-expr.c:2400 0x7598f0 gfc_conv_component_ref ../../gcc/fortran/trans-expr.c:2400 0x765903 gfc_conv_variable ../../gcc/fortran/trans-expr.c:2700 0x768eda gfc_conv_expr_reference(gfc_se*, gfc_expr*) ../../gcc/fortran/trans-expr.c:7909 0x7881c6 gfc_trans_transfer(gfc_code*) ../../gcc/fortran/trans-io.c:2556 0x72f1c7 trans_code ../../gcc/fortran/trans.c:2024 0x785ca7 build_dt ../../gcc/fortran/trans-io.c:2028 0x72f1e7 trans_code ../../gcc/fortran/trans.c:1996 0x755edc gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6422 0x6e7f20 translate_all_program_units ../../gcc/fortran/parse.c:6088 0x6e7f20 gfc_parse_file() ../../gcc/fortran/parse.c:6291 0x72c62f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204