When we are performing copy initialization of a class type via its
copy constructor, suppress user-defined conversions on the
argument. Otherwise, we can end up in a recursion loop where the
bind the argument of the copy constructor to another copy constructor call,
whose argument is then a copy constructor call...
Found by Boost.Regex which, alas, still isn't building.
llvm-svn: 102269
diff --git a/clang/test/SemaCXX/overload-call.cpp b/clang/test/SemaCXX/overload-call.cpp
index feec9df..79c74ce 100644
--- a/clang/test/SemaCXX/overload-call.cpp
+++ b/clang/test/SemaCXX/overload-call.cpp
@@ -408,7 +408,7 @@
}
namespace PR6078 {
- struct A { // expected-note{{candidate is the implicit copy constructor}}
+ struct A {
A(short); // expected-note{{candidate constructor}}
A(long); // expected-note{{candidate constructor}}
};