================ @@ -0,0 +1,58 @@ +// RUN: %clang_cc1 -std=c++20 -verify %s + +template<int I> +concept C = I >= 4; + +template<int I> +concept D = I < 8; + +template<int I> +struct A { + constexpr static int f() { return 0; } + constexpr static int f() requires C<I> && D<I> { return 1; } + constexpr static int f() requires C<I> { return 2; } + + constexpr static int g() requires C<I> { return 0; } // expected-note {{member function specialization matches 'g'}} ---------------- erichkeane wrote:
Ah, please use the bookmark tags for these notes, I already got confused here: ) https://github.com/llvm/llvm-project/pull/88963 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits