From: Richard Smith Date: Thu, 22 Jan 2015 01:15:51 +0000 (+0000) Subject: Remove an out-of-date and incorrect comment. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f399bb1fba8ca4f5d959209983766470b06f8e3;p=clang Remove an out-of-date and incorrect comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226756 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index 75a511403d..c244d7e530 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -4254,16 +4254,6 @@ TryReferenceInit(Sema &S, Expr *Init, QualType DeclType, // -- Otherwise, the reference shall be an lvalue reference to a // non-volatile const type (i.e., cv1 shall be const), or the reference // shall be an rvalue reference. - // - // We actually handle one oddity of C++ [over.ics.ref] at this - // point, which is that, due to p2 (which short-circuits reference - // binding by only attempting a simple conversion for non-direct - // bindings) and p3's strange wording, we allow a const volatile - // reference to bind to an rvalue. Hence the check for the presence - // of "const" rather than checking for "const" being the only - // qualifier. - // This is also the point where rvalue references and lvalue inits no longer - // go together. if (!isRValRef && (!T1.isConstQualified() || T1.isVolatileQualified())) return ICS;