https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95769
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- And, in the compiler the C++ constant evaluation is something done only in the C++ FE, while you are looking for IPA constant propagation and based on that performing the C++ FE constant evaluation because that function had constexpr.