summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2019-10-23 17:54:10 -0700
committerRichard Smith <richard@metafoo.co.uk>2019-10-24 14:58:29 -0700
commit70f59b5bbc84d195b4c7ee1597dcae4e73d3c479 (patch)
tree3ab997cf0cd33142c5ab9ded2cad4e6dacdfa8b5 /clang/test/SemaCXX/cxx0x-initializer-constructor.cpp
parent33fca97880d3bd6ab4888b6eeb72bddff536e37a (diff)
downloadbcm5719-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/SemaCXX/cxx0x-initializer-constructor.cpp')
-rw-r--r--clang/test/SemaCXX/cxx0x-initializer-constructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp
index 870bbe5ce36..513c670d392 100644
--- a/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp
+++ b/clang/test/SemaCXX/cxx0x-initializer-constructor.cpp
@@ -266,7 +266,7 @@ namespace PR12120 {
struct A { explicit A(int); A(float); }; // expected-note {{declared here}}
A a = { 0 }; // expected-error {{constructor is explicit}}
- struct B { explicit B(short); B(long); }; // expected-note 4{{candidate}}
+ struct B { explicit B(short); B(long); }; // expected-note 2{{candidate}}
B b = { 0 }; // expected-error {{ambiguous}}
struct C { explicit C(short); C(long); }; // expected-note 2{{candidate}}
OpenPOWER on IntegriCloud