]> granicus.if.org Git - clang/commit
Temporary fix for PR18473: Don't try to evaluate the initializer for a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 6 Feb 2014 23:35:16 +0000 (23:35 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 6 Feb 2014 23:35:16 +0000 (23:35 +0000)
commit65dd6234cb748bd3a8cfd1e3aa84fffc2226d7e4
treec1ef637d6a30e40f8a11da89a04a06bb76e3f204
parent0fe43fbee967539a2dce28caa94c8cefc7abab7c
Temporary fix for PR18473: Don't try to evaluate the initializer for a
type-dependent variable, even if the initializer isn't value-dependent. This
happens for ParenListExprs composed of non-value-dependent subexpressions, for
instance.

We should really give ParenListExprs (and InitListExprs) the type of the
initialized entity if they're used to represent a dependent initialization (and
if so, set them to be type-, value- and instantiation-dependent).

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