------- Comment #2 from tkoenig at gcc dot gnu dot org 2010-02-14 12:38 ------- The problem appears to be a lack of a backend_decl with -fwhole-file:
Breakpoint 1, fancy_abort (file=0xd474a0 "../../trunk/gcc/fortran/trans-expr.c", line=466, function=0xd47e40 "gfc_conv_component_ref") at ../../trunk/gcc/diagnostic.c:727 727 { (gdb) up #1 0x0000000000557e63 in gfc_conv_component_ref () at ../../trunk/gcc/fortran/trans-expr.c:466 466 gcc_assert (c->backend_decl); (gdb) p c->backend_decl $1 = (tree) 0x0 (gdb) p *c $2 = {name = 0x7ffff5d0af18 "$vptr", ts = {type = BT_DERIVED, kind = 0, u = {derived = 0x13d11b0, cl = 0x13d11b0}, interface = 0x0, is_c_interop = 0, is_iso_c = 0, f90_type = BT_DERIVED}, attr = { allocatable = 0, dimension = 0, external = 0, intrinsic = 0, optional = 0, pointer = 1, target = 0, value = 0, volatile_ = 0, temporary = 0, dummy = 0, result = 0, assign = 0, threadprivate = 0, not_always_present = 0, implied_index = 0, subref_array_pointer = 0, proc_pointer = 0, asynchronous = 0, class_pointer = 0, save = SAVE_NONE, data = 0, is_protected = 0, use_assoc = 0, use_only = 0, use_rename = 0, imported = 0, in_namelist = 0, in_common = 0, in_equivalence = 0, function = 0, subroutine = 0, procedure = 0, generic = 0, generic_copy = 0, implicit_type = 0, untyped = 0, is_bind_c = 0, extension = 0, is_class = 0, class_ok = 0, vtab = 0, is_c_interop = 0, is_iso_c = 0, sequence = 0, elemental = 0, pure = 0, recursive = 0, unmaskable = 0, masked = 0, contained = 0, mod_proc = 0, abstract = 0, noreturn = 0, entry = 0, entry_master = 0, mixed_entry_master = 0, always_explicit = 0, referenced = 0, is_main_program = 0, access = ACCESS_UNKNOWN, intent = INTENT_UNKNOWN, flavor = FL_UNKNOWN, if_source = IFSRC_UNKNOWN, proc = PROC_UNKNOWN, cray_pointer = 0, cray_pointee = 0, alloc_comp = 0, pointer_comp = 0, proc_pointer_comp = 0, private_comp = 0, zero_comp = 0, ext_attr = 0, volatile_ns = 0x0, asynchronous_ns = 0x0}, as = 0x0, backend_decl = 0x0, loc = {nextc = 0x0, lb = 0x0}, initializer = 0x13d06e0, next = 0x0, formal = 0x0, formal_ns = 0x0, tb = 0x0} Confirmed. -- tkoenig at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-02-14 12:39:00 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43039