Skip to content

Commit 20c8a68

Browse files
committed
[FOLD] use bookmark tags for ambiguity test notes
1 parent 535ee42 commit 20c8a68

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

clang/test/CXX/temp/temp.spec/temp.expl.spec/p14-23.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ struct A {
1212
constexpr static int f() requires C<I> && D<I> { return 1; }
1313
constexpr static int f() requires C<I> { return 2; }
1414

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
1717

1818
constexpr static int h() requires C<I> { return 0; } // expected-note {{member declaration nearly matches}}
1919
};
@@ -42,6 +42,8 @@ constexpr int A<8>::g() { return 3; }
4242

4343
template<>
4444
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'}}
4547

4648
static_assert(A<9>::g() == 0);
4749
static_assert(A<1>::g() == 1);

0 commit comments

Comments
 (0)