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

            Bug ID: 58947
           Summary: [OOP] ICE on select type with non-polymorphic
                    selector
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com

type t
    integer i
  end type

  type(t) a

  select type (x=>a%i)
    type is (integer)
      print *,x
  end select
end


> gfortran seltype.f90
f951: internal compiler error: Neoprávněný přístup do paměti (SIGSEGV)
0x8ba79f crash_signal
        ../../gcc-4.8-20130509/gcc/toplev.c:332
0x546b1c get_unique_type_string
        ../../gcc-4.8-20130509/gcc/fortran/class.c:462
0x5476d8 get_unique_hashed_string
        ../../gcc-4.8-20130509/gcc/fortran/class.c:485
0x5480aa gfc_build_class_symbol(gfc_typespec*, symbol_attribute*,
gfc_array_spec**, bool)
        ../../gcc-4.8-20130509/gcc/fortran/class.c:579
0x58f528 copy_ts_from_selector_to_associate
        ../../gcc-4.8-20130509/gcc/fortran/match.c:5220
0x58f528 gfc_match_select_type()
        ../../gcc-4.8-20130509/gcc/fortran/match.c:5391
0x59e919 match_word
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:65
0x59fb8e match_word
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:368
0x59fb8e decode_statement
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:369
0x5a0f04 next_free
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:783
0x5a0f04 next_statement
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:976
0x5a15a4 parse_spec
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:2744
0x5a34e8 parse_progunit
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4124
0x5a4208 gfc_parse_file()
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4605
0x5dfd15 gfc_be_parse_file
        ../../gcc-4.8-20130509/gcc/fortran/f95-lang.c:189
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to