https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118790
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- case MEM_REF: if (!integer_zerop (TREE_OPERAND (loc, 1))) { have_address = 1; goto do_plus; } /* Fallthru. */ case INDIRECT_REF: list_ret = loc_list_from_tree_1 (TREE_OPERAND (loc, 0), 0, context); have_address = 1; break; And then the crash is at: switch (TREE_CODE (loc)) Which means there is a null for either MEM_REF/INDIRECT_REF