[PATCH] D78186: [flang] Remove some unnecessary checks.
مهدي شينون (Mehdi Chinoune) via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 02:41:55 PDT 2020
ChinouneMehdi created this revision.
ChinouneMehdi added a reviewer: Flang.
ChinouneMehdi created this object with visibility "All Users".
ChinouneMehdi created this object with edit policy "Subscribers".
ChinouneMehdi added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
See:
https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
Repository:
rG LLVM Github Monorepo
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
@@ -13,16 +13,6 @@
// or that is too weird or too specific to the host C++ compiler to be
// exposed elsewhere.
-#ifndef __cplusplus
-#error this is a C++ program
-#endif
-#if __cplusplus < 201703L
-#error this is a C++17 program
-#endif
-#if !__clang__ && defined __GNUC__ && __GNUC__ < 7
-#error g++ >= 7.2 is required
-#endif
-
#include <functional>
#include <list>
#include <optional>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78186.257640.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/ca5acf0d/attachment.bin>
More information about the llvm-commits
mailing list