Skip to content

Commit

Permalink
Fix for building llvm-flang with gcc 7.5.0 (minimum LLVM required gcc…
Browse files Browse the repository at this point in the history
… version (#73265)

Fix for #68593
  • Loading branch information
raghavendhra committed Nov 26, 2023
1 parent 1314e87 commit 3bebf3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flang/include/flang/Common/enum-class.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ constexpr std::array<std::string_view, ITEMS> EnumNames(const char *p) {
[[maybe_unused]] static constexpr std::size_t NAME##_enumSize{ \
::Fortran::common::CountEnumNames(#__VA_ARGS__)}; \
[[maybe_unused]] static inline std::string_view EnumToString(NAME e) { \
static const constexpr char vaArgs[]{#__VA_ARGS__}; \
static const constexpr auto names{ \
::Fortran::common::EnumNames<NAME##_enumSize>(vaArgs)}; \
::Fortran::common::EnumNames<NAME##_enumSize>(#__VA_ARGS__)}; \
return names[static_cast<std::size_t>(e)]; \
}

Expand Down

0 comments on commit 3bebf3b

Please sign in to comment.