flang: Fix flang build with -Wctad-maybe-unsupported
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 16 Aug 2022 01:07:38 +0000 (01:07 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 16 Aug 2022 01:08:17 +0000 (01:08 +0000)
Shooting from the hip since I don't have a flang build locally, but
hopefully this works.

flang/include/flang/Common/idioms.h

index 1a08616..696f272 100644 (file)
@@ -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{[] { \