File tree 1 file changed +4
-2
lines changed
clang/test/CXX/temp/temp.spec/temp.expl.spec
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ struct A {
12
12
constexpr static int f () requires C<I> && D<I> { return 1 ; }
13
13
constexpr static int f () requires C<I> { return 2 ; }
14
14
15
- constexpr static int g () requires C<I> { return 0 ; } // expected-note {{member function specialization matches 'g'}}
16
- constexpr static int g () requires D<I> { return 1 ; } // expected-note {{member function specialization matches 'g'}}
15
+ constexpr static int g () requires C<I> { return 0 ; } // #candidate-0
16
+ constexpr static int g () requires D<I> { return 1 ; } // #candidate-1
17
17
18
18
constexpr static int h () requires C<I> { return 0 ; } // expected-note {{member declaration nearly matches}}
19
19
};
@@ -42,6 +42,8 @@ constexpr int A<8>::g() { return 3; }
42
42
43
43
template <>
44
44
constexpr int A<6 >::g() { return 4 ; } // expected-error {{ambiguous member function specialization 'A<6>::g' of 'A::g'}}
45
+ // expected-note@#candidate-0 {{member function specialization matches 'g'}}
46
+ // expected-note@#candidate-1 {{member function specialization matches 'g'}}
45
47
46
48
static_assert (A<9 >::g() == 0);
47
49
static_assert (A<1 >::g() == 1);
You can’t perform that action at this time.
0 commit comments