From 1d7bf46ec221a62f20ad0770de471e6949291104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 16 Apr 2020 20:53:52 +0200 Subject: [PATCH] Use UDL template for GCC 9.3 and newer It seems that this was fixed for GCC 9.3 with https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88095 --- include/fmt/format.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 1e2d7d6c..3e415a6e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -135,11 +135,12 @@ FMT_END_NAMESPACE #endif #ifndef FMT_USE_UDL_TEMPLATE -// EDG front end based compilers (icc, nvcc) and GCC < 6.4 do not propertly -// support UDL templates and GCC >= 9 warns about them. +// EDG front end based compilers (icc, nvcc) and GCC < 6.4 do not properly +// support UDL templates and GCC >= 9 < 9.3 warns about them. # if FMT_USE_USER_DEFINED_LITERALS && FMT_ICC_VERSION == 0 && \ FMT_CUDA_VERSION == 0 && \ - ((FMT_GCC_VERSION >= 604 && FMT_GCC_VERSION <= 900 && \ + ((FMT_GCC_VERSION >= 604 && \ + (FMT_GCC_VERSION <= 900 || FMT_GCC_VERSION >= 903) && \ __cplusplus >= 201402L) || \ FMT_CLANG_VERSION >= 304) # define FMT_USE_UDL_TEMPLATE 1