https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69355
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note get_inner_reference uses
mode = TYPE_MODE (TREE_TYPE (exp));
*punsignedp = TYPE_UNSIGNED (TREE_TYPE (exp));
if (mode == BLKmode)
size_tree = TYPE_SIZE (TREE_TYPE (exp));
else
*pbitsize = GET_MODE_BITSIZE (mode);
and IMNSHO those two should be consistent in what they are doing.
