diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-04-17 16:30:52 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-04-17 16:30:52 +0000 |
commit | 76458501a8963fa11b91c9337a487de6871169b4 (patch) | |
tree | 6677db44b394562ac7869d77681d2b2c4f5e1340 /lib/Sema/SemaDeclCXX.cpp | |
parent | 448f5e6c191b40c90a67c48547df420d16f48b96 (diff) |
Implement lvalue test for conditional expressions.
Add a few commented lines to the test case that point out things that don't work yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 9fd62269f2..734b6ce3a0 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -2120,6 +2120,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType, ICS->Standard.ReferenceBinding = true; ICS->Standard.DirectBinding = true; ICS->Standard.RRefBinding = false; + ICS->Standard.CopyConstructor = 0; // Nothing more to do: the inaccessibility/ambiguity check for // derived-to-base conversions is suppressed when we're @@ -2273,6 +2274,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType, ICS->Standard.ReferenceBinding = true; ICS->Standard.DirectBinding = false; ICS->Standard.RRefBinding = isRValRef; + ICS->Standard.CopyConstructor = 0; } else { // FIXME: Binding to a subobject of the rvalue is going to require // more AST annotation than this. |