diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 95a10517..9b2aa74d 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -2017,13 +2017,16 @@ struct formatter, return formatter::format(localtime(val), ctx); } - static constexpr const Char default_specs[] = {'%', 'F', ' ', '%', 'T'}; + // EDG frontend (Intel, NVHPC compilers) can't determine array length. + static constexpr const Char default_specs[5] = {'%', 'F', ' ', '%', 'T'}; }; +#if FMT_CPLUSPLUS < 201703L template constexpr const Char formatter, Char>::default_specs[]; +#endif template struct formatter { private: