https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107939
--- Comment #2 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- Making the expression using the `extern const` variable more complex or indirect makes it work. With an IILE, for example: https://compiler-explorer.com/z/EjYYvPvqT.