]> granicus.if.org Git - clang/commit
Reinstate r142844 (reverted in r142872) now that lvalue-to-rvalue conversions
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Oct 2011 17:51:58 +0000 (17:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Oct 2011 17:51:58 +0000 (17:51 +0000)
commitc49bd11f96c2378969822f1f1b814ffa8f2bfee4
tree8aa222ba0325ce635580c13b10ffbf18ad65ec0b
parent854625f7347e4418803fe4aa9131928408e4dc53
Reinstate r142844 (reverted in r142872) now that lvalue-to-rvalue conversions
are present in all the necessary places:

In constant expression evaluation, evaluate lvalues as lvalues and rvalues as
rvalues. Remove special case for caching reference initialization and fix a
cyclic initialization crash in the process.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143204 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/AST/Expr.h
lib/AST/ExprConstant.cpp
test/CodeGenCXX/static-data-member.cpp
test/SemaCXX/constant-expression-cxx11.cpp