Skip to content

Commit de04bc5

Browse files
committed
add 'viable'
1 parent e3f210f commit de04bc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5664,7 +5664,7 @@ def err_explicit_instantiation_not_known : Error<
56645664
"explicit instantiation of %0 does not refer to a function template, "
56655665
"variable template, member function, member class, or static data member">;
56665666
def err_explicit_instantiation_no_candidate : Error<
5667-
"no candidate for explicit instantiation of %0">;
5667+
"no viable candidate for explicit instantiation of %0">;
56685668
def note_explicit_instantiation_here : Note<
56695669
"explicit instantiation refers here">;
56705670
def err_explicit_instantiation_data_member_not_instantiated : Error<

clang/test/SemaTemplate/explicit-instantiation-cxx20.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct a {
3131
// expected-note@-1 {{candidate function}}
3232
};
3333
template void a<int>::no_candidate();
34-
// expected-error@-1 {{no candidate for explicit instantiation of 'no_candidate'}}
34+
// expected-error@-1 {{no viable candidate for explicit instantiation of 'no_candidate'}}
3535

3636
template void a<int>::ambiguous();
3737
// expected-error@-1 {{partial ordering for explicit instantiation of 'ambiguous' is ambiguous}}

0 commit comments

Comments
 (0)