[PATCH] D78186: [flang] Don't check __cplusplus value with MSVC.

مهدي شينون (Mehdi Chinoune) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 14:33:06 PDT 2020


ChinouneMehdi updated this revision to Diff 261357.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78186/new/

https://reviews.llvm.org/D78186

Files:
  flang/include/flang/Common/idioms.h


Index: flang/include/flang/Common/idioms.h
===================================================================
--- flang/include/flang/Common/idioms.h
+++ flang/include/flang/Common/idioms.h
@@ -16,7 +16,7 @@
 #ifndef __cplusplus
 #error this is a C++ program
 #endif
-#if __cplusplus < 201703L
+#if __cplusplus < 201703L && !_MSC_VER
 #error this is a C++17 program
 #endif
 #if !__clang__ && defined __GNUC__ && __GNUC__ < 7


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78186.261357.patch
Type: text/x-patch
Size: 427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/3f94744b/attachment.bin>


More information about the llvm-commits mailing list