================ @@ -6,3 +6,15 @@ void f(...) { } void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}} + + +namespace GH153445 { +void f(int = {}...); + +struct S { + void f(int = {}...); + void g(int...); +}; + +void S::g(int = {}...) {} ---------------- Fznamznon wrote:
Does something like this ``` template <typename ...T> constexpr int a() {return 1;} struct S { template <typename ...Ts> void f(int = a<Ts...>()...); }; ``` work too? https://github.com/llvm/llvm-project/pull/153496 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits