projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11f45f3
)
flang: Fix flang build with -Wctad-maybe-unsupported
author
David Blaikie
<dblaikie@gmail.com>
Tue, 16 Aug 2022 01:07:38 +0000
(
01:07
+0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/flang/include/flang/Common/idioms.h
b/flang/include/flang/Common/idioms.h
index
1a08616
..
696f272
100644
(file)
--- 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{[] { \