summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/conditional-expr.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-24 20:54:38 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-24 20:54:38 +0000
commitc779e995402ac3e6dc10655482b5e0be34dfa23f (patch)
treed144914954dc08e882c1996caac33e8777ab1656 /clang/test/SemaCXX/conditional-expr.cpp
parentcfc12ddb0a61688d66d28c4c7f4ee7aa95abec6f (diff)
downloadbcm5719-llvm-c779e995402ac3e6dc10655482b5e0be34dfa23f.tar.gz
bcm5719-llvm-c779e995402ac3e6dc10655482b5e0be34dfa23f.zip
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
Diffstat (limited to 'clang/test/SemaCXX/conditional-expr.cpp')
-rw-r--r--clang/test/SemaCXX/conditional-expr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/conditional-expr.cpp b/clang/test/SemaCXX/conditional-expr.cpp
index aa413232391..a812a5920d6 100644
--- a/clang/test/SemaCXX/conditional-expr.cpp
+++ b/clang/test/SemaCXX/conditional-expr.cpp
@@ -7,8 +7,7 @@
struct ToBool { explicit operator bool(); };
struct B;
-struct A { A(); A(const B&); }; // expected-note 2 {{candidate constructor}} \
- // expected-note 2 {{candidate is the implicit copy constructor}}
+struct A { A(); A(const B&); }; // expected-note 2 {{candidate constructor}}
struct B { operator A() const; }; // expected-note 2 {{candidate function}}
struct I { operator int(); };
struct J { operator I(); };
OpenPOWER on IntegriCloud