https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112642
--- Comment #3 from Miro Palmu <miro.palmu at helsinki dot fi> --- Further reduced: #include <string> using namespace std::literals; consteval void bar() { auto _ = [](auto s) { return s; }(""s); } int main() { bar(); return 0; }