Skip to content

Commit c2170a3

Browse files
[Flang] Allow using common::visit with Clang (#90137)
Allow using common::visit with Clang. Test plan: ninja check-all
1 parent 2804a79 commit c2170a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/include/flang/Common/visit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ inline RT_API_ATTRS auto visit(VISITOR &&visitor, VARIANT &&...u)
8888
// Some versions of clang have bugs that cause compilation to hang
8989
// on these templates. MSVC and older GCC versions may work but are
9090
// not well tested. So enable only for GCC 9 and better.
91-
#if __GNUC__ < 9
91+
#if __GNUC__ < 9 && !defined(__clang__)
9292
#define FLANG_USE_STD_VISIT
9393
#endif
9494

0 commit comments

Comments
 (0)