Skip to content

Commit 3bebf3b

Browse files
authored
Fix for building llvm-flang with gcc 7.5.0 (minimum LLVM required gcc version (#73265)
Fix for #68593
1 parent 1314e87 commit 3bebf3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flang/include/flang/Common/enum-class.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ constexpr std::array<std::string_view, ITEMS> EnumNames(const char *p) {
6363
[[maybe_unused]] static constexpr std::size_t NAME##_enumSize{ \
6464
::Fortran::common::CountEnumNames(#__VA_ARGS__)}; \
6565
[[maybe_unused]] static inline std::string_view EnumToString(NAME e) { \
66-
static const constexpr char vaArgs[]{#__VA_ARGS__}; \
6766
static const constexpr auto names{ \
68-
::Fortran::common::EnumNames<NAME##_enumSize>(vaArgs)}; \
67+
::Fortran::common::EnumNames<NAME##_enumSize>(#__VA_ARGS__)}; \
6968
return names[static_cast<std::size_t>(e)]; \
7069
}
7170

0 commit comments

Comments
 (0)