From 970b8b91c13db5a44e06798439ad4d1e00874c6e Mon Sep 17 00:00:00 2001 From: n16h7hunt3r Date: Tue, 11 Aug 2020 19:06:56 +0200 Subject: [PATCH] fix: disabled UDL templates for PGI (#1811) --- 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 d8680c39..afef2be7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -139,12 +139,13 @@ FMT_END_NAMESPACE #endif #ifndef FMT_USE_UDL_TEMPLATE -// EDG frontend based compilers (icc, nvcc, etc) and GCC < 6.4 do not properly -// support UDL templates and GCC >= 9 warns about them. +// EDG frontend based compilers (icc, nvcc, PGI, etc) and GCC < 6.4 do not +// properly support UDL templates and GCC >= 9 warns about them. # if FMT_USE_USER_DEFINED_LITERALS && \ (!defined(__EDG_VERSION__) || __EDG_VERSION__ >= 501) && \ ((FMT_GCC_VERSION >= 604 && __cplusplus >= 201402L) || \ - FMT_CLANG_VERSION >= 304) + FMT_CLANG_VERSION >= 304) && \ + !__PGI # define FMT_USE_UDL_TEMPLATE 1 # else # define FMT_USE_UDL_TEMPLATE 0