https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110822
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE on constexpr |[13/14 Regression] ICE on |initialized with |constexpr initialized with |non-constant expression |non-constant expression |also accepts-invalid |also accepts-invalid Target Milestone|--- |13.2 Known to fail| |13.1.0 Known to work| |12.1.0 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note I think GCC accepts this because the string fits in the (local) buffer of std::string. That is a longer string like: constexpr std::string text = "012345678901234567890"s; is rejected ....