https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98216
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I guess the issue has to be with you using 'static constexpr auto arr' and that not being correctly templated on the expression. Well, confirmed your observation.