https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98592
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- The idea is to print the cast indicating the MEM_REF type only when the size of the accessed type is different from the size of the element type of the underlying array or pointer. Structural equivalence seemed like a good fit. But using TYPE_MAIN_VARIANT would work too (and include more information).