https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111087
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- just since GCC decides to act const in some cases like constexpr especially with -std=c++20, you get the warning.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 21 Aug 2023 00:27:40 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111087
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- just since GCC decides to act const in some cases like constexpr especially with -std=c++20, you get the warning.