]> granicus.if.org Git - clang/commit
When checking whether a reference to a variable is an ICE, look at the type of
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Feb 2012 22:12:32 +0000 (22:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 24 Feb 2012 22:12:32 +0000 (22:12 +0000)
commit359c89df5479810c9d4784fc0b6ab592eb136777
treed8904c4794928f823197cac4abce2e1c1b6d42d5
parentf329527bbeae86c8eac6eea6efaa20e807c16679
When checking whether a reference to a variable is an ICE, look at the type of
the declaration, not at the type of the DeclRefExpr, since within a lambda the
DeclRefExpr can be more const than the declaration is.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/lambda-expressions.cpp