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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-12-13
                 CC|                            |janus at gcc dot gnu.org
            Summary|internal compiler error:    |[OOP] ICE: Segfault on
                   |Segmentation fault on       |Class(*) pointer
                   |Class(*) pointer            |association
                   |association with GCC 4.8.1  |
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.1, 4.9.0

--- Comment #1 from janus at gcc dot gnu.org ---
Confirmed with 4.9 and trunk. Slightly reduced test case:


  implicit none

  type ty_mytype1
  end type

  class(ty_mytype1), allocatable,target:: cla1
  class(*), pointer :: ptr

  ptr => cla1

end



The backtrace on trunk is:

c0.f90: In function ‘MAIN__’:
c0.f90:2:0: internal compiler error: Segmentation fault
   implicit none
 ^
0x93662f crash_signal
    /home/jweil/gcc49/trunk/gcc/toplev.c:336
0x66c231 gfc_get_derived_type(gfc_symbol*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-types.c:2351
0x66c968 gfc_typenode_for_spec(gfc_typespec*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-types.c:1112
0x66b223 gfc_sym_type(gfc_symbol*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-types.c:2137
0x66b6e8 gfc_get_function_type(gfc_symbol*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-types.c:2797
0x62cb0f build_function_decl
    /home/jweil/gcc49/trunk/gcc/fortran/trans-decl.c:1879
0x62e11b gfc_create_function_decl(gfc_namespace*, bool)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-decl.c:2534
0x634f79 gfc_generate_contained_functions
    /home/jweil/gcc49/trunk/gcc/fortran/trans-decl.c:4714
0x634f79 gfc_generate_function_code(gfc_namespace*)
    /home/jweil/gcc49/trunk/gcc/fortran/trans-decl.c:5541
0x5d5710 translate_all_program_units
    /home/jweil/gcc49/trunk/gcc/fortran/parse.c:4536
0x5d5710 gfc_parse_file()
    /home/jweil/gcc49/trunk/gcc/fortran/parse.c:4733
0x611fa5 gfc_be_parse_file
    /home/jweil/gcc49/trunk/gcc/fortran/f95-lang.c:188

Reply via email to