http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57116



             Bug #: 57116

           Summary: ICE for pointer assignment inside SELECT TYPE on UP

                    entity

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: fortran

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: ba...@lrz.de





Created attachment 29976

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29976

module and main program as standalone source.



The attached Fortran source produces the following error message with gfortran

4.8.0:



rtti_pointerassign_02_pos.f90: In function `extract':

rtti_pointerassign_02_pos.f90:13:0: internal compiler error: Segmentation fault

        extract => this(ic:)

 ^

0x87e07f crash_signal

        ../../gcc-4.8.0/gcc/toplev.c:332

0x5d2db2 gfc_trans_pointer_assignment(gfc_expr*, gfc_expr*)

        ../../gcc-4.8.0/gcc/fortran/trans-expr.c:6555

0x5a7896 trans_code

        ../../gcc-4.8.0/gcc/fortran/trans.c:1439

0x5f0e28 gfc_trans_block_construct(gfc_code*)

        ../../gcc-4.8.0/gcc/fortran/trans-stmt.c:1342

0x5a76b7 trans_code

        ../../gcc-4.8.0/gcc/fortran/trans.c:1527

0x5f25fd gfc_trans_integer_select

        ../../gcc-4.8.0/gcc/fortran/trans-stmt.c:1990

0x5f25fd gfc_trans_select(gfc_code*)

        ../../gcc-4.8.0/gcc/fortran/trans-stmt.c:2484

0x5a76c7 trans_code

        ../../gcc-4.8.0/gcc/fortran/trans.c:1543

0x5f0e28 gfc_trans_block_construct(gfc_code*)

        ../../gcc-4.8.0/gcc/fortran/trans-stmt.c:1342

0x5a76b7 trans_code

        ../../gcc-4.8.0/gcc/fortran/trans.c:1527

0x5c4be2 gfc_generate_function_code(gfc_namespace*)

        ../../gcc-4.8.0/gcc/fortran/trans-decl.c:5397

0x5a8091 gfc_generate_module_code(gfc_namespace*)

        ../../gcc-4.8.0/gcc/fortran/trans.c:1755

0x56862b translate_all_program_units

        ../../gcc-4.8.0/gcc/fortran/parse.c:4455

0x56862b gfc_parse_file()

        ../../gcc-4.8.0/gcc/fortran/parse.c:4682

0x5a3c25 gfc_be_parse_file

        ../../gcc-4.8.0/gcc/fortran/f95-lang.c:189

Reply via email to