summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-init-ref.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-24 16:14:37 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-24 16:14:37 +0000
commitf143cd5051581385916cc23a588f28cf3ff21fd1 (patch)
treef57483c1e50915d491db179422ec34e30eaca8f6 /clang/test/SemaCXX/decl-init-ref.cpp
parent465abe92a51c46e5f35a29ee940ff1e500581bf0 (diff)
downloadbcm5719-llvm-f143cd5051581385916cc23a588f28cf3ff21fd1.tar.gz
bcm5719-llvm-f143cd5051581385916cc23a588f28cf3ff21fd1.zip
Re-instate r123977/r123978, my updates of the reference-binding
implementation used by overload resolution to support rvalue references. The original commits caused PR9026 and some hard-to-reproduce self-host breakage. The only (crucial!) difference between this commit and the previous commits is that we now properly check the SuppressUserConversions flag before attempting to perform a second user-defined conversion in reference binding, breaking the infinite recursion chain of user-defined conversions. Rvalue references should be working a bit better now. llvm-svn: 124121
Diffstat (limited to 'clang/test/SemaCXX/decl-init-ref.cpp')
-rw-r--r--clang/test/SemaCXX/decl-init-ref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/decl-init-ref.cpp b/clang/test/SemaCXX/decl-init-ref.cpp
index dc56332b5d0..34c4578e9d6 100644
--- a/clang/test/SemaCXX/decl-init-ref.cpp
+++ b/clang/test/SemaCXX/decl-init-ref.cpp
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
-struct A {}; // expected-note {{candidate is the implicit copy constructor}}
+struct A {};
struct BASE {
operator A(); // expected-note {{candidate function}}
OpenPOWER on IntegriCloud