http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55763
Harald Anlauf <anlauf at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #10 from Harald Anlauf <anlauf at gmx dot de> 2012-12-29 23:05:45 UTC --- I have a simple case where CLASS(*) leads to an ICE. If it doesn't fit here, please feel free to move it elsewhere. module gfcbug121 implicit none type myobj class(*), allocatable :: x contains procedure :: print end type myobj contains subroutine print(this) class(myobj) :: this end subroutine print end module gfcbug121 I get: % gfc-trunk gfcbug121.f90 -c f951: internal compiler error: Segmentation fault 0x8621590 crash_signal ../../trunk/gcc/toplev.c:334 0x8198ffb gfc_default_initializer(gfc_typespec*) ../../trunk/gcc/fortran/expr.c:3870 0x817ef24 gfc_find_intrinsic_vtab(gfc_typespec*) ../../trunk/gcc/fortran/class.c:2315 0x817f642 gfc_class_null_initializer(gfc_typespec*, gfc_expr*) ../../trunk/gcc/fortran/class.c:417 0x82639a0 gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool, bool) ../../trunk/gcc/fortran/trans-expr.c:5665 0x825436e gfc_conv_structure(gfc_se*, gfc_expr*, int) ../../trunk/gcc/fortran/trans-expr.c:6132 0x826394d gfc_conv_initializer(gfc_expr*, gfc_typespec*, tree_node*, bool, bool, bool) ../../trunk/gcc/fortran/trans-expr.c:5667 0x8248b8d gfc_get_symbol_decl(gfc_symbol*) ../../trunk/gcc/fortran/trans-decl.c:1494 0x8249d45 gfc_create_module_variable ../../trunk/gcc/fortran/trans-decl.c:4086 0x8249d45 gfc_create_module_variable ../../trunk/gcc/fortran/trans-decl.c:4016 0x82085e3 do_traverse_symtree ../../trunk/gcc/fortran/symbol.c:3451 0x8243e05 gfc_generate_module_vars(gfc_namespace*) ../../trunk/gcc/fortran/trans-decl.c:4485 0x8221232 gfc_generate_module_code(gfc_namespace*) ../../trunk/gcc/fortran/trans.c:1620 0x81dc72d translate_all_program_units ../../trunk/gcc/fortran/parse.c:4452 0x81dc72d gfc_parse_file() ../../trunk/gcc/fortran/parse.c:4679 0x821ba1f gfc_be_parse_file ../../trunk/gcc/fortran/f95-lang.c:191