https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104757
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to Richard Biener from comment #4) > (In reply to Tobias Burnus from comment #3) > > 923 r = gimple_range_global (name); > > > > (gdb) p debug_tree(name) > > <ssa_name 0x7ffff6fd1798 > > type <boolean_type 0x7ffff6fed150 logical(kind=4) public unsigned SI > > ... > you don't quote more but I guess this name is released and thus has a NULL > SSA_NAME_DEF_STMT so the is_a check crashes. > > if (SSA_NAME_IS_DEFAULT_DEF (name) || (cfun && cfun->after_inlining) > || is_a<gphi *> (SSA_NAME_DEF_STMT (name))) Indeed: (gdb) p name->base.default_def_flag $2 = 0 (gdb) p cfun $3 = (function *) 0x7ffff71be000 (gdb) p cfun->after_inlining $4 = 0 (gdb) p name->ssa_name.def_stmt $5 = (gimple *) 0x0