diff options
author | Richard Smith <richard@metafoo.co.uk> | 2019-10-23 17:54:10 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2019-10-24 14:58:29 -0700 |
commit | 70f59b5bbc84d195b4c7ee1597dcae4e73d3c479 (patch) | |
tree | 3ab997cf0cd33142c5ab9ded2cad4e6dacdfa8b5 /clang/test/SemaTemplate/cxx1z-using-declaration.cpp | |
parent | 33fca97880d3bd6ab4888b6eeb72bddff536e37a (diff) | |
download | bcm5719-llvm-70f59b5bbc84d195b4c7ee1597dcae4e73d3c479.tar.gz bcm5719-llvm-70f59b5bbc84d195b4c7ee1597dcae4e73d3c479.zip |
When diagnosing an ambiguity, only note the candidates that contribute
to the ambiguity, rather than noting all viable candidates.
Diffstat (limited to 'clang/test/SemaTemplate/cxx1z-using-declaration.cpp')
-rw-r--r-- | clang/test/SemaTemplate/cxx1z-using-declaration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaTemplate/cxx1z-using-declaration.cpp b/clang/test/SemaTemplate/cxx1z-using-declaration.cpp index 87ca748f8fd..ba5918ce098 100644 --- a/clang/test/SemaTemplate/cxx1z-using-declaration.cpp +++ b/clang/test/SemaTemplate/cxx1z-using-declaration.cpp @@ -16,7 +16,7 @@ void test_Unexpanded() { } // Test using non-type members from pack of base classes. -template<typename ...T> struct A : T... { // expected-note 2{{candidate}} +template<typename ...T> struct A : T... { using T::T ...; // expected-note 2{{inherited here}} using T::operator() ...; using T::operator T* ...; @@ -41,7 +41,7 @@ namespace test_A { Y(int, int); void operator()(int, int); operator Y *(); - void h(int, int); // expected-note {{not viable}} + void h(int, int); }; struct Z { Z(); @@ -177,14 +177,14 @@ namespace test_lambda1 { }; struct B { template<typename> struct X { - void f(int, int); // expected-note {{declared here}} expected-note {{not viable}} + void f(int, int); // expected-note {{declared here}} using type = int; }; }; struct C { template<typename> struct X { void f(int); // expected-note {{candidate}} - void f(int, int); // expected-note {{not viable}} + void f(int, int); using type = int; }; }; |