From 9e94216abe7774b2816beec55a067d0cdd8f8cc3 Mon Sep 17 00:00:00 2001 From: peter klausler Date: Wed, 25 Apr 2018 13:33:48 -0700 Subject: [PATCH] [flang] Attempt to build f18 with clang. Original-commit: flang-compiler/f18@0480837234cfe407aac0795cc5c35dfa6ee1139d Reviewed-on: https://github.com/flang-compiler/f18/pull/73 Tree-same-pre-rewrite: false --- flang/lib/parser/idioms.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/parser/idioms.h b/flang/lib/parser/idioms.h index b6d6d62..6654034 100644 --- a/flang/lib/parser/idioms.h +++ b/flang/lib/parser/idioms.h @@ -11,7 +11,7 @@ #if __cplusplus < 201703L #error this is a C++17 program #endif -#if defined __GNUC__ && __GNUC__ < 7 +#if !defined(__clang__) && defined __GNUC__ && __GNUC__ < 7 #error G++ >= 7.0 is required #endif -- 2.7.4