https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117711
--- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> --- Created attachment 60066 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60066&action=edit different testcase $ aarch64-unknown-linux-gnu-gcc -mabi=ilp32 testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:1:24: internal compiler error: in plus_constant, at explow.cc:102 1 | void foo() { *(3234565 + (char *)foo); } | ~~~~~~~~~^~~~~~~~~~~~~~ 0x2847c21 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xcaa0bf fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1722 0x81a03e plus_constant(machine_mode, rtx_def*, poly_int<2u, long>, bool) /repo/gcc-trunk/gcc/explow.cc:102 0x18cfca2 aarch64_load_symref_appropriately /repo/gcc-trunk/gcc/config/aarch64/aarch64.cc:3097 ...