From fb0aeb8209d815688b4b4c0e69ca61a57d72c941 Mon Sep 17 00:00:00 2001 From: n16h7hunt3r <31915716+n16h7hunt3r@users.noreply.github.com> Date: Wed, 12 Aug 2020 00:27:27 +0200 Subject: [PATCH] fix: disabled UDL templates for PGI (#1811) (#1812) * fix: disabled UDL templates for PGI (#1811) * fix: insert defined auround __PGI Co-authored-by: n16h7hunt3r --- 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..efe090d0 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) && \ + !defined(__PGI) # define FMT_USE_UDL_TEMPLATE 1 # else # define FMT_USE_UDL_TEMPLATE 0