From: David Blaikie Date: Tue, 16 Aug 2022 01:07:38 +0000 (+0000) Subject: flang: Fix flang build with -Wctad-maybe-unsupported X-Git-Tag: upstream/17.0.6~36396 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=248591aabee7fcc5246b67879b6a71b0bbbc0b9c;p=platform%2Fupstream%2Fllvm.git 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. --- diff --git a/flang/include/flang/Common/idioms.h b/flang/include/flang/Common/idioms.h index 1a08616..696f272 100644 --- a/flang/include/flang/Common/idioms.h +++ b/flang/include/flang/Common/idioms.h @@ -123,6 +123,9 @@ template struct ListItemCount { const std::size_t value; }; +template +ListItemCount(std::initializer_list) -> ListItemCount; + #define ENUM_CLASS(NAME, ...) \ enum class NAME { __VA_ARGS__ }; \ LLVM_ATTRIBUTE_UNUSED static constexpr std::size_t NAME##_enumSize{[] { \