https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106485
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-01-19 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think comment #0 is a different issue from comment #2 really. comment #0 has a temporary while comment #2 has an consteval. Also GCC accepts this just fine though: #include <string> static_assert(!std::string{"abcdegfgggggggggggg"}.empty());