https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71699
--- Comment #3 from Manish Goregaokar <manish at mozilla dot com> --- Looks like https://github.com/gcc-mirror/gcc/blob/4e1b04b0cc2248df1b7820c04743935147bd138e/gcc/fold-const.c#L13202 already handles this? Unless it doesn't know about sizeof.