https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114994
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note lambdas is not need can happen in any template function: ``` #include <iostream> #define FMT_HEADER_ONLY #include <fmt/format.h> using namespace fmt::literals; template<int T> auto test(int a) { return fmt::format("{foo} {bar}", "foo"_a="foo", "bar"_a="bar"); } auto t = test<1>(1); ```