[flang-commits] [flang] 248591a - flang: Fix flang build with -Wctad-maybe-unsupported
David Blaikie via flang-commits
flang-commits at lists.llvm.org
Mon Aug 15 18:08:29 PDT 2022
Author: David Blaikie
Date: 2022-08-16T01:08:17Z
New Revision: 248591aabee7fcc5246b67879b6a71b0bbbc0b9c
URL: https://github.com/llvm/llvm-project/commit/248591aabee7fcc5246b67879b6a71b0bbbc0b9c
DIFF: https://github.com/llvm/llvm-project/commit/248591aabee7fcc5246b67879b6a71b0bbbc0b9c.diff
LOG: flang: Fix flang build with -Wctad-maybe-unsupported
Shooting from the hip since I don't have a flang build locally, but
hopefully this works.
Added:
Modified:
flang/include/flang/Common/idioms.h
Removed:
################################################################################
diff --git a/flang/include/flang/Common/idioms.h b/flang/include/flang/Common/idioms.h
index 1a086162f1e2a..696f272c6a1fa 100644
--- a/flang/include/flang/Common/idioms.h
+++ b/flang/include/flang/Common/idioms.h
@@ -123,6 +123,9 @@ template <typename A> struct ListItemCount {
const std::size_t value;
};
+template<typename A>
+ListItemCount(std::initializer_list<A>) -> ListItemCount<A>;
+
#define ENUM_CLASS(NAME, ...) \
enum class NAME { __VA_ARGS__ }; \
LLVM_ATTRIBUTE_UNUSED static constexpr std::size_t NAME##_enumSize{[] { \
More information about the flang-commits
mailing list