================
@@ -8,3 +8,28 @@ template <int Unroll> void foo() {
#pragma GCC unroll Unroll
for (int i = 0; i < Unroll; ++i);
}
+
+struct val {
+ constexpr operator int() const { return 1; }
+};
+
+// generic lambda (using double template instantiation)
+
+template<typename T>
+void use(T t) {
+ auto lam = [](auto N) {
----------------
erichkeane wrote:
Hmm, im shocked at that, but I guess it is possible. Yes, I think this is
valuable to have in anyway then, I was just hoping that we could repro this
elsewise.
https://github.com/llvm/llvm-project/pull/172289
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits