[clang] [Clang][Sema] Improve support for explicit specializations of constrained member functions & member function templates (PR #88963)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue May 7 10:08:33 PDT 2024
================
@@ -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
More information about the cfe-commits
mailing list