Skip to content

Commit

Permalink
[Flang] Allow using common::visit with Clang (#90137)
Browse files Browse the repository at this point in the history
Allow using common::visit with Clang.

Test plan: ninja check-all
  • Loading branch information
alexander-shaposhnikov committed Apr 26, 2024
1 parent 2804a79 commit c2170a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flang/include/flang/Common/visit.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ inline RT_API_ATTRS auto visit(VISITOR &&visitor, VARIANT &&...u)
// Some versions of clang have bugs that cause compilation to hang
// on these templates. MSVC and older GCC versions may work but are
// not well tested. So enable only for GCC 9 and better.
#if __GNUC__ < 9
#if __GNUC__ < 9 && !defined(__clang__)
#define FLANG_USE_STD_VISIT
#endif

Expand Down

0 comments on commit c2170a3

Please sign in to comment.