https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96058
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- The stack trace in comment #0: during GIMPLE pass: strlen ../../chrome/browser/ui/views/sharing/sharing_icon_view.cc: In member function ‘GetVectorIconBadge’: ../../chrome/browser/ui/views/sharing/sharing_icon_view.cc:146: internal compiler error: in tree_to_uhwi, at tree.h:4519 0x666aa8 tree_to_uhwi(tree_node const*) ../../gcc/tree.h:4519 0x666aa8 c_getstr(tree_node*, unsigned long*) ../../gcc/fold-const.c:15475 indicates that tree_to_uhwi() ICEs after a successful call to tree_fits_uhwi_p(): if (!tree_fits_uhwi_p (mem_size)) return NULL; /* STRING_LENGTH is the size of the string literal, including any embedded NULs. STRING_SIZE is the size of the array the string literal is stored in. */ unsigned HOST_WIDE_INT string_length = TREE_STRING_LENGTH (src); unsigned HOST_WIDE_INT string_size = tree_to_uhwi (mem_size); I don't see how that can ever happen. Am I misreading it? What's mem_size?