diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-24 16:14:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-24 16:14:37 +0000 |
commit | 8dde14e7f43a4b29e592b3e8e576eb467ddb6c6e (patch) | |
tree | 926ec6608ecc240a7101b0f595d33840afb6f75f /lib/Sema/SemaTemplate.cpp | |
parent | 274f83c2ece9041a1994fc3eacfe812ca86095e8 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index ad08a11f20..2d2c3ea672 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2470,6 +2470,7 @@ bool Sema::CheckTemplateArgumentList(TemplateDecl *Template, TemplateParameterList::iterator Param = Params->begin(), ParamEnd = Params->end(); unsigned ArgIdx = 0; + LocalInstantiationScope InstScope(*this, true); while (Param != ParamEnd) { if (ArgIdx > NumArgs && PartialTemplateArgs) break; |